Skip to content
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

Android X issue? #160

Closed
lucasjinreal opened this issue May 5, 2019 · 9 comments
Closed

Android X issue? #160

lucasjinreal opened this issue May 5, 2019 · 9 comments
Labels

Comments

@lucasjinreal
Copy link

Just using 0.11 version:

* What went wrong:                                                      
Execution failed for task ':audioplayers:verifyReleaseResources'.       
> java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                                                        
* Get more help at https://help.gradle.org                              
                                                                        
BUILD FAILED in 10s                                                     
Running Gradle task 'assembleRelease'...                                
Running Gradle task 'assembleRelease'... Done                      10.8s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************

whole app can not be built now

@luanpotter
Copy link
Member

This trace mentions some sort of log file... Could you please provide that? This error is a bit cryptic to me

@lucasjinreal
Copy link
Author

@luanpotter Hi. interestingly, when I using flutter run rather than flutter run --release it can built.

So, I suppose it is something todo with --release mode? Can you test on your case? It seems not work for me under release mode. And this error just can not built through

@erickzanardo
Copy link
Member

Have you tried following the link suggested on your log? https://goo.gl/CP92wY

@lucasjinreal
Copy link
Author

@erickzanardo I am in China....... google is very far.... to access.......

@erickzanardo
Copy link
Member

hmmm, sorry to hear that, but given your log, this very much like to be problems with android X, make sure that your project is already migrated to the Android X support lib, there are a lot of good resources online, and you can also use the audioplayers example app as reference.

If for some reason you can't migrate to Android X, I recommend you using the version 0.10.x of audioplayers, which does not require Android X.

@IrosTheBeggar
Copy link

@jinfagang I hit this problem and found the solution here: flutter/flutter#27106

You need to upgrade grade.build to use compileSdkVersion of 28

@erickzanardo
Copy link
Member

Closing due inactivity.

@nni123
Copy link

nni123 commented Feb 24, 2020

@jinfagang I hit this problem and found the solution here: flutter/flutter#27106

You need to upgrade grade.build to use compileSdkVersion of 28

that works for me..thanks

@MonicaTanglu
Copy link

也有可能是你的版本太低了,升级一下audioplayers的版本。(我也是这个问题,升级了就🆗了)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants