-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Gradle Fails to sync after upgrading to Cordova Android 8.0 #675
Comments
Also seeing this issue. Rolling back to cordova-android@7.1.4 until a fix is released |
Thanks for the report. Can you provide a bit more information? Is this for existing projects that are upgraded? How exactly do you upgrade? How do you usually build this project, only with Android Studio? Is it reproducible with a new Cordova project? |
I am able to reproduce this in my upgraded project. I was having the same problem with the previous release (I think 7.1.4). |
Also experiencing this. The cordova build on the command line works fine, just opening it in Android Studio produces the errors. Android Studio provides a one-click refactor that moves the minSdk entry from the manifest, but that's still a manual step I have to take. |
So can one recreate it by creating a new Cordova project with cordova-android 8.0 and then just opening the project in Android Studio 3.2.1 (or also other versions)? |
@janpio I can recreate this by removing all platforms and plugins, then |
Can you try to confirm a reproduction that starts with |
Just importing, wsync failed:
Build now runs |
I tried:
both ways I get gradle sync issue, with cordova build/run I don't have that problem |
Any workaround while the #680 is merged? |
I've just clicked the link in the error message to "move" the minSdk, and I was able to build from android studio after that |
Remove old crappy way of doing adaptive icons in favor of new hotness Note: If you try to build in Android Studio, you'll have to click the link in the error message to "move" the minSdk. Details are here: apache/cordova-android#675
@EchoNox It works for me. |
Bug Report
Problem
What is expected to happen?
The Gradle should sync with success
What does actually happen?
Gradle Sync Fails
Information
After upgrading to Cordova Android 8.0 Gradle sync fails with the following message:
Command or Code
Open the platforms/android project in Android Studio
Version information
Android Studio 3.2.1
Build #AI-181.5540.7.32.5056338, built on October 9, 2018
JRE: 1.8.0_152-release-1136-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6
Cordova: 8.1.2
Cordova Android: 8.0
Cordova Plugins:
cordova-plugin-awesome-shared-preferences 0.1.0 "Shared preferences"
cordova-plugin-backbutton 0.3.0 "Backbutton"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-calendar 5.1.4 "Calendar"
cordova-plugin-deeplinks 1.1.0 "Cordova Deeplinks Plugin"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-firebase-crashlytics 0.0.8 "Cordova Firebase Crashlytics Plugin"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.4 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
Checklist
The text was updated successfully, but these errors were encountered: