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

Are we all on AndroidX? #12

Closed
ghenry opened this issue Sep 28, 2019 · 4 comments
Closed

Are we all on AndroidX? #12

ghenry opened this issue Sep 28, 2019 · 4 comments

Comments

@ghenry
Copy link
Collaborator

ghenry commented Sep 28, 2019

flutter run
Launching lib/main.dart on SM G970F in debug mode...
Initializing gradle...                                              0.7s
Resolving dependencies...                                           1.4s
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'
                                                                        
* 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 3s                                                      
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                         3.9s
AndroidX incompatibilities may have caused this build to fail. 
Please migrate your app to AndroidX. See https://goo.gl/CP92wY.
Gradle task assembleDebug failed with exit code 1
@ghenry
Copy link
Collaborator Author

ghenry commented Sep 28, 2019

This is on:

commit 8e42b5991bfd558716735b6be91efec1ea5be940 (HEAD -> master, origin/master, origin/HEAD)
Author: CloudWebRTC <duanweiwei1982@gmail.com>
Date:   Thu Sep 26 22:04:56 2019 +0800

    Remove the extra route and fix the DialPadWidget instance to be created repeatedly.

@ghenry
Copy link
Collaborator Author

ghenry commented Sep 28, 2019

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.10.7-pre.73, on Linux, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 3.5)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)

@ghenry
Copy link
Collaborator Author

ghenry commented Sep 29, 2019

Works ok on stable channel:

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Linux, locale en_GB.UTF-8)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Android Studio (version 3.5)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.38.1)
[✓] Connected device (1 available)

@cloudwebrtc
Copy link
Member

It looks like an Android compatibility issue. I found this:
https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility

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

No branches or pull requests

2 participants