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

Example app won't build on Pixel 3. #16

Open
speaking-in-code opened this issue Sep 29, 2020 · 0 comments · May be fixed by #17
Open

Example app won't build on Pixel 3. #16

speaking-in-code opened this issue Sep 29, 2020 · 0 comments · May be fixed by #17

Comments

@speaking-in-code
Copy link

The example app does not build on Pixel 3 for me. I will look at sending a PR to fix the problem.

Flutter run output:

$ flutter run
Running "flutter pub get" in example...                             1.6s
Launching lib/main.dart on Pixel 3 in debug mode...
[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by
    following the steps on https://goo.gl/CP92wY .
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: buildToolsVersion is not specified.    
        at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
        at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:558)
      ...
                                                                        
FAILURE: Build failed with an exception.                                
                                                                        
* Where:                                                                
Script '/Users/brian/Applications/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 26
                                                                        
* What went wrong:                                                      
A problem occurred evaluating script.                                   
> Could not find method google() for arguments [] on repository container.
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        21.6s
Exception: Gradle task assembleDebug failed with exit code 1

Output of flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-US)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[✓] Android Studio (version 4.0)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3.5)
[✓] IntelliJ IDEA Community Edition (version 2017.2.2)
[✓] Connected device (1 available)
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

Successfully merging a pull request may close this issue.

1 participant