Well I tried to shrink the code and resources as well but after running I am getting this error :
Error:Execution failed for task
':app:transformClassesWithNewClassShrinkerForDebug'.
Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.
Then I saw somewhere in the post that I should update my studio then I did that by downloading and installing patches. It started and I received this error :
Error:svn: E200005: 'is not under version control
Well within few seconds I got alert message to update gradle I did that and this svn error is gone.
But when I run my application the first problem still persists and don't know how to resolve it.
If anyone got a solution please explain me what to do? and why it happened?
Related
So I tried every possible way and ask from different people, and I also tried updating dependencies on my project but to only possible latest version since there's a version constraint. Here's the full error
https://pastebin.com/r6ZEPURC
Script 'C:\Users\Rodrigo\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\Users\Rodrigo\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
How can I fix this issue? thanks.
I tried updating my dependencies and changing some parts of my code, but it still doesn't work. I was trying to build it into an APK for a few days now, but I still get the same error.
There is a known issue with the modal_bottom_sheet package conflicting with material bottom sheet. You need to follow the recommendations there to get your app to build. See: https://github.com/jamesblasco/modal_bottom_sheet/issues/328
As a general rule, it is always a good idea to check the package's GitHub repo issues section when you see errors like this.
i have a strange error with AAPT2 iin Android Studio. I think it has something to do with german special characters in my account name in windows.
If i set my gradle to version 3.0.1 and also set android.enableAapt2 to false everything works fine. But since i researched, setting the option is not a solution to the problem.
Now if i set the gradle version to 3.1.2 and remove android.enableAapt2 from the properties i get the following error message:
And this one:
One way to solve the problem was to create a new account in windows without special chars in the name. It compiled and did run very well. I really tried everything in the web but could not find a solution to the problem.
Maybe you can help me.
First of all check your build log botom of the build section you shared whether any error related to your project showing or not. If error showing then fix those. Build and run again and fix all the error comes up. It will eliminate aapt2 issue without changing android gradle plugin.
Secondly if there is not any project related error showing in the build log but still its showing aapt2 error then you can fix it by following below steps.
Update your android gradle plugin in your project level build.gradle file like below:
classpath 'com.android.tools.build:gradle:3.2.0-alpha13'
Now update android.enableAapt2=true. Then check and build your project.
I am having issues with my capstone project and have looked around online but my issue will not go away. I have tried closing and reopening android studio, changing the build type of my project and have come up short on getting the error resolved I'm attaching a picture of the error at run time. Hopefully someone can help me resolve this issue.
android error picture
Check your permission:
"android.permission.WRITE_EXTERNAL_STORAGE`"
There is no need for the back tick `
I'm trying to build my project for a class assignment and I do not know why I am getting this build error. It makes very little sense to me.
Here's the entire message:
Warning:Exception while processing task java.lang.RuntimeException: java.lang.AssertionError: com.android.jack.library.LibraryIOException: I/O error when accessing file 'C:\Users\Name\Downloads\Fall 2016\CSXXX\assignments\assignment1\app\build\intermediates\packaged\androidTest\debug\classes.zip': Failed to delete directory 'C:\Users\Name\AppData\Local\Temp\vfs-1473281485250-0'
:app:compileDebugAndroidTestJavaWithJack FAILED
Error:Execution failed for task ':app:compileDebugAndroidTestJavaWithJack'.
> java.lang.RuntimeException: java.lang.AssertionError: com.android.jack.library.LibraryIOException: I/O error when accessing file 'C:\Users\Name\Downloads\Fall 2016\CSXXX\assignments\assignment1\app\build\intermediates\packaged\androidTest\debug\classes.zip': Failed to delete directory 'C:\Users\Name\AppData\Local\Temp\vfs-1473281485250-0'
Is this just a test failure? or is there a bigger issue?
Had the same problem, my Antivirus software seemed to be causing it.
I hope that this issue will be fixed within Android Studio soon.
Disabling antivirus altogether is obviously a bad idea, but if you can whitelist %TEMP%/vfs* in your antivirus it should do the trick (disclaimer: Do so at your own risk, this is still a bit of a security gap).
Alternatively you could disable jack and use the legacy toolchain for your Android project.
I have no Idea what is happening, last time when I finished my app I build its release apk and all was working just fine as expected but now today when I tried to make that pproject again and to make another apk I am getting the following error.
Error:Execution failed for task ':app:mergeDebugResources'.
Crunching Cruncher common_signin_btn_icon_pressed_light.9.png failed, see logs
I have no idea how to resolve it I have serached and found restarting Android studio and clean the project would remove it , doing this many times has no effect on this error. I have even restarted my machine but the condition of error in same.
In the logs I have seen that this png file is from the library I added , so just for testing I removed that library and tried to build then it started to give me same error with different png file name in other library. So how to fix this issue ?
My Questions are :
How can this issue be Solved ?
Have some one faced this problem too ?
Is this problem has been reported to google ?
Why in android we do not have any stable platform for development as IOS have ?
Try to remove "builds" folders and do rebuild. But soon, the whole thing in a long file name. Read this answer. By the way, you looked logs? Maybe this is not the PNG? You have not sent the log and did not specify the version Gradle.
Believe me, iOS developers have own problems.