java.lang.UnsupportedOperationException: can't load this type of class file

GitHub | snowdream | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    java.lang.UnsupportedOperationException: can't load this type of class file

    GitHub | 7 months ago | snowdream
    java.lang.UnsupportedOperationException: can't load this type of class file
  2. 0

    when debug groovy, raise "org.codehaus.groovy.control.MultipleCompilationErrorsException"

    Stack Overflow | 1 year ago | anxvonial
    java.lang.UnsupportedOperationException: can't load this type of class file

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      can't load this type of class file

      at java.lang.ClassLoader.defineClass()
    2. Java RT
      SecureClassLoader.defineClass
      1. java.lang.ClassLoader.defineClass(ClassLoader.java:300)
      2. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:93)
      2 frames
    3. Groovy
      GroovyClassLoader.parseClass
      1. groovy.lang.GroovyClassLoader.access$400(GroovyClassLoader.java:63)
      2. groovy.lang.GroovyClassLoader$ClassCollector.createClass(GroovyClassLoader.java:500)
      3. groovy.lang.GroovyClassLoader$ClassCollector.onClassNode(GroovyClassLoader.java:517)
      4. groovy.lang.GroovyClassLoader$ClassCollector.call(GroovyClassLoader.java:521)
      5. org.codehaus.groovy.control.CompilationUnit$16.call(CompilationUnit.java:822)
      6. org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1055)
      7. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591)
      8. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
      9. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
      10. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
      11. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
      12. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
      13. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:212)
      13 frames
    4. com.github.snowdream
      MainFragment.onViewCreated
      1. com.github.snowdream.groovy.helloworld.MainFragment.onViewCreated(MainFragment.groovy:24)
      1 frame
    5. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1123)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1286)
      3. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:758)
      4. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1671)
      5. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:532)
      5 frames
    6. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:145)
      4. android.app.ActivityThread.main(ActivityThread.java:5942)
      4 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
      2 frames