java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()

GitHub | TomeOkin | 4 months ago
  1. 0

    Not support AppCompatActivity

    GitHub | 4 months ago | TomeOkin
    java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
  2. 0

    java.lang.annotation.AnnotationFormatError: Invalid default:

    Stack Overflow | 2 weeks ago | bin
    java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
  3. 0

    Robolectric fails with AnnotationFormatError exception when using @Config annotation

    GitHub | 2 years ago | vkislicins
    java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AndroidStudio Robolectric Unit Tests - Invaild default

    Stack Overflow | 2 years ago | unknown
    java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()
  6. 0

    Android Studio 1.1.0 + Robolectric 2.4 causes java.lang.annotation.AnnotationFormatError

    Stack Overflow | 2 years ago | bogumil
    java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()

  1. Luka 3 times, last 2 months ago
  2. Luka 3 times, last 2 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.annotation.AnnotationFormatError

    Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application()

    at java.lang.reflect.Method.getDefaultValue()
  2. Java RT
    Class.getAnnotation
    1. java.lang.reflect.Method.getDefaultValue(Method.java:611)
    2. sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:128)
    3. sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85)
    4. sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:266)
    5. sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
    6. sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
    7. java.lang.Class.createAnnotationData(Class.java:3521)
    8. java.lang.Class.annotationData(Class.java:3510)
    9. java.lang.Class.getAnnotation(Class.java:3415)
    9 frames
  3. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4TestRunnerUtil.buildRequest(JUnit4TestRunnerUtil.java:210)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:40)
    2 frames
  4. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame