-
Notifications
You must be signed in to change notification settings - Fork 182
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
Cordova@9 doesn't know how to update AndroidManifest.xml #239
Comments
I'm having the same problem. Here's my cordova-lib@9.0.1 with:
cordova-common@3.2.1
cordova-create@2.0.0
cordova-fetch@2.0.1
cordova-serve@3.0.0
Environment:
OS: linux
Node: v10.18.1
npm: 6.13.4
Plugins:
nodejs-mobile-cordova
Android platform:
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Running /opt/android-sdk-linux/tools/bin/avdmanager list target
Available Android targets:==============] 100% Fetch remote repository...
----------
id: 1 or "android-15"
Name: Android API 15
Type: Platform
API level: 15
Revision: 5
----------
id: 2 or "android-17"
Name: Android API 17
Type: Platform
API level: 17
Revision: 3
----------
id: 3 or "android-19"
Name: Android API 19
Type: Platform
API level: 19
Revision: 4
----------
id: 4 or "Google Inc.:Google APIs:21"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Google APIs
Based on Android 5.0 (API level 21)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
----------
id: 5 or "android-21"
Name: Android API 21
Type: Platform
API level: 21
Revision: 2
----------
id: 6 or "Google Inc.:Google APIs:22"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Google APIs
Based on Android 5.1 (API level 22)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
----------
id: 7 or "android-22"
Name: Android API 22
Type: Platform
API level: 22
Revision: 2
----------
id: 8 or "Google Inc.:Google APIs:23"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Google APIs
Based on Android 6.0 (API level 23)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
----------
id: 9 or "android-23"
Name: Android API 23
Type: Platform
API level: 23
Revision: 3
----------
id: 10 or "android-24"
Name: Android API 24
Type: Platform
API level: 24
Revision: 2
----------
id: 11 or "android-25"
Name: Android API 25
Type: Platform
API level: 25
Revision: 3
----------
id: 12 or "android-26"
Name: Android API 26
Type: Platform
API level: 26
Revision: 2
----------
id: 13 or "android-27"
Name: Android API 27
Type: Platform
API level: 27
Revision: 3
----------
id: 14 or "android-28"
Name: Android API 28
Type: Platform
API level: 28
Revision: 6
----------
id: 15 or "android-29"
Name: Android API 29
Type: Platform
API level: 29
Revision: 4 |
And the nodejs variable is not defined. |
https://github.com/dtrax/nodejs-cordova-plugin I have fixed the project for cordova 9 and cordova-android 8.1.0 here. You can use this one until it is fixed here. |
@dtrax could you please spare a minute to answer @plmercereau above. I'm also stuck at the same step. I can get cordova to seemingly install nodejs-cordova-plugin but it looks like it doesn't execute actual installation of the plugin because I can't see it in the config.xml for example. Thanks for helping! |
it's: |
* Patched to work with cordova-android@9.0.0 JaneaSystems/nodejs-mobile#239 (comment) * Patched to work with cordova-android@9.0.0 JaneaSystems/nodejs-mobile#239 (comment) * Updated build.gradle * Removed copy-build-extras-gradle hook * Delete build-extras.gradle * Delete copy-build-extras-gradle.js * Create build-apk.yaml * Fixed a typo * Delete build-apk.yaml * Added "Build Android Project" test * Added "Build IOS Project" test * Update package.json * Update build-ios.yaml * Tabs..
Using Cordova 9.0.0, I noticed this error
Unable to graft xml at selector "/manifest/uses-sdk"
:I fixed this easily by deleting the
uses-sdk
edit-config:And by creating this new hook that creates a file
build-extras.gradle
that will set the min sdk level:It should be pretty straightforward to create a PR for this.
The text was updated successfully, but these errors were encountered: