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
assembleDebug failed with exit code 1 #268
Comments
Are you able to provide a sample to reproduce the problem? I've experienced occasions where Android Studio supposedly has done a migration but hasn't actually done it. This can be verified by looking at the build.gradle file of your Android app where it should be referencing AndroidX dependencies instead of the deprecated support libraries |
Unfortunately I can't provide a sample right now. This is what is in the build.gradle file currently.
|
It is my understanding though that cloud_firestore shouldn't require migration to AndroidX as I am using a version post 0.9.0? I am trying to create a minimum example now. |
An AndroidX migration is required. That wasn't done only a specific version (i.e. not 0.9.0 only) but applies to all future versions of the cloud_firestore plugin. You'd need to set the target SDK to 28 as well. If you look at the docs in the link that goes to the page on the Flutter website, it mentions both the compile and target SDK needs to be 28. |
I have updated the build.gradle file so that both sdk fields reference version 28. However the build still fails, I tried another migration through android studio now now that the targetSDK is set correctly. But it still fails to find anything to migrate. In the sample I am trying to build. It throws the explicit AndroidX error. But Android studio fails to find anything to migrate. Going to give it another try in case I missed something. |
Do you have the following set in the android/gradle.properties file?
|
Yes I do. |
I haven't had much luck creating a sample. Even though I have performed the migration. It is still throwing the explicit AndroidX error. The code is up here. It is essentially just the Sample Flutter Project with local_notifications and cloud_firestore as dependencies. I haven't modified any of the code inside lib as so far it has not been able to build. |
Thanks will take a look when I can |
Created a PR to your repo with comments |
Thanks MaikuB. I had multidex enabled in the main repo, but had put the AndroidManifest receiver tags outside the activity tags. Thanks again for your support. |
I'm having the same issue. How did you solve the problem? |
I had to check that I had Multidex enabled, (Which I did) but the main issue was that I had placed the Activity Tags outside the scope of the Activity tag in the AndroidManifest.Xml file. Here is the link to the Pull request MaikuB kindly created with his comments. |
assembleDebug fails if Schedule notification entries are in the AndroidManifest.xml. Completes successfully if these entries are not included.
Verbose output lists as AndroidX issue with cloud_firestore. HOWEVER I have previously Migrated the App to AndroidX. Doing so now has no affect because it cannot find anything requiring migration.
Versions
flutter_local_notifications: ^0.7.1+3
cloud_firestore: ^0.12.7
Relevant verbose output below:
The text was updated successfully, but these errors were encountered: