New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean Error:Execution failed for task ':app:mockableAndroidJar'. > java.lang.NullPointerException (no error message) in Android Studio 2.2 #21
Comments
I also still don't know what happens with hidden API v23. On some users, this error doesn't appear. Otherwise, some users are facing this problem. For me, I don't face this problem. Let's try a new framework.jar from different devices, this trick may fix the problem. The current jar was picked from SGS3 LTE with BlissPop ROM, Android 6.0.1, Bliss version v6.2. You can find the jar in from Android 6.0 devices. Upload it to me and I'll make a new modified android.jar. |
I also met this problem today. Are you have solution now ? Android Studio 2.2.2 |
I met this problem days ago, for now I clean all the files by hand every every time...., and this do makes me annoy. Does anyone find the solution about this ? |
I have this issue as well as I'm using a modified android.jar (which has all the hidden API revealed).
Now the unit testing compilation tasks will always be skipped and no errors will be thrown. |
@IgorEisberg wow, thanks, 👍 😄 it works. I just using
|
@jp1017 That works too, I just feel as if disabling all of the "unit testing" tasks is better because it's also faster (you have 3 tasks less instead of just 1 task less). |
Yes, but I can't disable others for I using Tinker which using thems. 😞 |
@jp1017 Oh fair enough. Well, at least the problem's solved for now! Gradle is such a buggy thing... -_- |
@IgorEisberg I add -x :app:prepareReleaseUnitTestDependencies -x :app:mockableAndroidJar -x :app:compileReleaseUnitTestSources to my settings but it still show Error:java.lang.NullPointerException (no error message) |
For this, you should add below to your setting:
For others, do it like this. enjoy it. 😄 |
Another workaround: In your project's main build.gradle, inside "allprojects":
|
@IgorEisberg 👍 After add this to my build.gradle, I found this in
It worked too. 👍 , Thank you. More important, this would work for other modules, it may worked for @tchgithub |
Yup, it covers the whole project, no matter how you name your modules. It's also more portable since it'll work immediately even if you transfer the project to another computer. |
I do like this, but it didn't work. Please can you give another way to resolve it? Thx a lot! @jp1017 |
@hyy007 May be you should show some codes. |
java.lang.NullPointerException(no error message). That's the error yestoday, and then when I rebuild the project, it shows: " Error:org.gradle.api.internal.changedetection.state.FileCollectionSnapshotImpl cannot be cast to org.gradle.api.internal.changedetection.state.OutputFilesCollectionSnapshotter$OutputFilesSnapshot
But I don't know the where's the right question... I restarted the Android Studio or restart the PC (Windows 7 system), it didn't help, either~ ‘(>﹏<)′ wuwu~ @jp1017 |
@hyy007 what for other projects? gradle version? just try any you can. |
Thank you for your answers for me. I checked out a new version and reopened it, then it went OK just like before... And I still don't know what's the question....I'm not sure if it is the SVN's problem when I work with my teammates. |
Try Hidden API v24 and this problem will be solved. |
@anggrayudi 25 still existed while the first compiling. |
Error:Execution failed for task ':app:processDebugManifest'.
dependencies {
} Any suggestion |
I have faced same issue and i have tried above all the answers but it want work for me. I think its worked in other cases. After 2 to 3 hours i will got the solution i am just extending the answer so i post this comment. In case my current project |
@IgorEisberg wow thanks dude.. 👍
|
@cikal Glad it's still useful! |
Error:
gradle:
···
compileSdkVersion 23
buildToolsVersion "23.0.3"
···
This error comes when using your lib of android-23, and it disappear when using the original android-23.jar.
We know
task ':app:mockableAndroidJar'
is experimental in Android Studio 2.1.3, and I close this.Android Studio clean 时产生 Error:Execution failed for task ':app:mockableAndroidJar' > java.lang.NullPointerException (no error message)
but google makes this stable in Android Stuido 2.2, and I can't this.
This error comes for some days until today I found this may be result from your lib.
The text was updated successfully, but these errors were encountered: