ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy android PowerMock JUnit
I had the same problem today. I'm not sure what happened, but by updating the compileSdkVersion
, buildToolsVersion
and targetSdkVersion
to match the support-annotations
version, the issue is gone.
Now the build.gradle
looks like:
android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
defaultConfig {
...
targetSdkVersion 27
}
}
dependencies {
compile 'com.android.support:support-annotations:27.0.2'
androidTestCompile 'com.android.support:support-annotations:27.0.2'
}
I couldn't find much comments about it, so I hope I can help someone.