You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This happens when using ML Kit with Flutter. Creating a flutter plugin with version 18 beta1 works without any issues but using 18 beta2 is failing with
AAPT: error: unexpected element <uses-native-library> found in <manifest><application>.
To Reproduce
Example Steps to reproduce the behavior in sample app:
flutter create --org com.foo --template=plugin --platforms=android -a kotlin mlkit_pose
Add dependency on 18beta1 to android/build.gradle
cd example; flutter run -> ALL GOOD
Add dependency on 18beta2 to android/build.gradle -> BUILD FAILS
Expected behavior
Build to succeed
SDK Info:
implementation 'com.google.mlkit:pose-detection-accurate:18.0.0-beta1' WORKS
Thanks. I had initially tried that, but it didn't work. I tried again, but this time changing the build.gradle for both the plugin and the application got it to work. I'll create an issue on the flutter side so they update the project template.
Describe the bug
This happens when using ML Kit with Flutter. Creating a flutter plugin with version 18 beta1 works without any issues but using 18 beta2 is failing with
To Reproduce
Example Steps to reproduce the behavior in sample app:
android/build.gradle
cd example; flutter run
-> ALL GOODandroid/build.gradle
-> BUILD FAILSExpected behavior
Build to succeed
SDK Info:
Development Environment:
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
• Android SDK at /Users/fmardini/Library/Android/sdk
• Platform android-32, build-tools 32.1.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Flutter (Channel stable, 2.10.4, on Mac OS X 10.15.7 19H1715 darwin-x64, locale en-GB)
• Flutter version 2.10.4 at /usr/local/Caskroom/flutter/2.10.1/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c860cba910 (3 weeks ago), 2022-03-25 00:23:12 -0500
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
The text was updated successfully, but these errors were encountered: