-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Including AAR into flutter project (Android Studio) #148037
Comments
Hi @gingu83
Could you please be more specific? Does it have any error or warning? And what is your Flutter version? (please provide the output of |
Hi this is the flutter doctor log /Users/Gingu/flutter/bin/flutter doctor --verbose [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [!] Android Studio (version unknown) [✓] Android Studio (version 2020.3) [✓] Android Studio (version 2021.3) [✓] Android Studio (version 2023.2) [!] Android Studio (version unknown) [✓] Connected device (4 available) [✓] Network resources ! Doctor found issues in 4 categories. |
This is the build.gradle plugins { def localProperties = new Properties() def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionName = localProperties.getProperty('flutter.versionName') android {
} flutter { |
My aar library is a custom library and it worka perfectly in a simple android java project. In flutter one, it's imported correctly and classes, objects, ecc. and some calls work perfectly but not all. What can I do? I want to compile it (it's an only flutter android project and I don't need other platform) in the same way |
@huycozy is it possibile why library is a 32 bit? |
Could you share a complete sample project on GitHub? And please add license the code in the repository under some open-source license (e.g. MIT, Apache, BSD, GPL) so that we may look into it. If AAR lib can't be shared, please provide the error/warning output so that we have more information to investigate further. Thank you. |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
Steps to reproduce
Hi, I'm using an our external aar package connecting to an external usb device (with some C code).
This package works perfectly in a simple Android project and I added it into flutter project with success. I able to compile and create a apk package but when I try to run app on device, I can't try to connect to the device. How can I do? is there some kind of compilations for flutter project different to a simple nativa java one?
Please help me
Thank you
Expected results
Correctly connection on usb device and work
Actual results
Connection to usb device failed
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
[Paste your output here]
The text was updated successfully, but these errors were encountered: