You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/18 16:55:07 UTC

[GitHub] [cordova-android] breautek commented on issue #1461: Cordova 11.0.0 + Android 11.0.0 - cordova prepare android --debug command fails

breautek commented on issue #1461:
URL: https://github.com/apache/cordova-android/issues/1461#issuecomment-1187753569

   If you want install a development build, you have to use the github repo url.
   
   e.g. `cordova platform add https://github.com/apache/cordova-android.git`
   
   Which will install the main branch. NPM also supports `#<commit-ish>` to install from a git repository at a specific commit, branch, or tag.
   
   Alternatively, you can `cordova platform add android@nightly` which will use a nightly published version based on the main branch, which should contain changes that was pushed at least 24 hours ago.
   
   > The prepare command works a little bit longer but fails as show below, and I don't know the side-effects.
   
   Based on the output:
   
   > * What went wrong:
   A problem occurred evaluating script.
   > For input string: "android-33"
   
   The issue appears to be related to using target SDK 33, which is an SDK level that Cordova might not support yet. cordova-android@11 adds support for SDK levels that was available during the time of development, which was up to SDK 32.
   
   Try removing `<preference name="android-targetSdkVersion"                 value="33"    />` or setting it's value to `32` to see if it creates a difference in behaviour. Cordova's default target SDK is `32` in cordova-android@11 when the `android-targetSdkVersion` is not supplied.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org