-
Notifications
You must be signed in to change notification settings - Fork 87
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
build failed when Integrate Flutter module into Android project #1671
Comments
➤ PM Bot commented: Jira ticket: RDART-1023 |
Sounds like you can reproduce this with a brand new project, do you mind uploading/sharing that so that we can look into what's happening? The repro steps are pretty much the standard install steps and those work, so there's likely something subtle in your setup that's hitting a corner case we didn't guard against. |
https://github.com/yanhq0719/flutter_module.git |
I am also getting this error
|
That error seems completely unrelated with the original issue. |
maybe the realm gradle task problem. |
any update? |
We were experiencing the same issue when trying to use flutter as a module. We solved the issue by locking the version of realm, copying and modifying realm's build.gradle (we specified correct relative paths for It would be really nice if realm had better support for this. Acquiring the path for |
Thanks for your comment, we adopt simlar way (fork repository and modifying realm's build.gradle) to solve this issue in the past period. Fortunately, at this moment we had achieved whole flutter-developed application so wo can get rid of this. But i believe before realm team proposing a solution, your solution should be the best answer |
Having the same problem on a MacOS project. |
What happened?
Repro steps
1.create a flutter module project(ep.realm_flutter_modules) and add realm dependency
`
dependencies:
flutter:
sdk: flutter
...
realm: ^2.2.1
`
2.create a android project(ep.RealmAddToApp) and follow the doc
3.run. then see build failed...
Version
3.19.3
What Atlas Services are you using?
Local Database only
What type of application is this?
Flutter Application
Client OS and version
Android Studio Iguana | 2023.2.1
Code snippets
Host App(RealmAddToApp)
flutter_settings.gradle
setBinding(new Binding(["gradle": this])) evaluate(new File( settingsDir.parentFile, "realm_flutter_modules/.android/include_flutter.groovy" ))
settings.gradle.kts
//... apply { from("flutter_settings.gradle") } //...
build.gradle.kts(app)
//... dependencies { //... implementation(project(":flutter")) //... } //...
Stacktrace of the exception/crash you're getting
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: