Skip to content

After upgrading to gradle plugin 4.1.0-beta01, local engine builds don't work #65399

@dnfield

Description

@dnfield
diff a/android/build.gradle b/android/build.gradle
9c9
<         classpath 'com.android.tools.build:gradle:3.5.0'
---
>         classpath 'com.android.tools.build:gradle:4.1.0-beta01'

Causes --local-engine builds to fail with errors like this:

* What went wrong:                                                      
Execution failed for task ':app:checkProfileAarMetadata'.               
> Could not resolve all files for configuration ':app:profileRuntimeClasspath'.
   > Could not find any matches for io.flutter:flutter_embedding_profile:+ as no versions of io.flutter:flutter_embedding_profile are available.
     Searched in the following locations:                               
       - https://dl.google.com/dl/android/maven2/io/flutter/flutter_embedding_profile/maven-metadata.xml
       - https://jcenter.bintray.com/io/flutter/flutter_embedding_profile/maven-metadata.xml
       - file:/var/folders/ly/j71v2zl54n74gp72pw876xv800k69x/T/flutter_tools.vSzwCK/flutter_tool_local_engine_repo.PbTS4I/io/flutter/flutter_embedding_profile/maven-metadata.xml
     Required by:                                                       
         project :app                                                   
   > Could not find any matches for io.flutter:arm64_v8a_profile:+ as no versions of io.flutter:arm64_v8a_profile are available.
     Searched in the following locations:                               
       - https://dl.google.com/dl/android/maven2/io/flutter/arm64_v8a_profile/maven-metadata.xml
       - https://jcenter.bintray.com/io/flutter/arm64_v8a_profile/maven-metadata.xml
       - file:/var/folders/ly/j71v2zl54n74gp72pw876xv800k69x/T/flutter_tools.vSzwCK/flutter_tool_local_engine_repo.PbTS4I/io/flutter/arm64_v8a_profile/maven-metadata.xml
     Required by:                                                       
         project :app      

Flutter 1.22.0-10.0.pre.88 • channel unknown • unknown source
Framework • revision e10bdbb (23 hours ago) • 2020-09-07 11:40:03 -0700
Engine • revision ac8b9c4
Tools • Dart 2.10.0 (build 2.10.0-86.0.dev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions