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/04 07:07:48 UTC

[GitHub] [cordova-android] AndrWeisR opened a new issue, #1456: version 11: compileSdkVersion is not specified. Please add it to build.gradle

AndrWeisR opened a new issue, #1456:
URL: https://github.com/apache/cordova-android/issues/1456

   # Bug Report
   
   ## Problem
   I'm attempting to upgrade an existing Ionic/Cordova app to use the latest cordova-android nightly build, but when building the app I'm getting an error "compileSdkVersion is not specified. Please add it to build.gradle"
   
   Am I missing something about specifying compileSdkVersion?
   
   ### What is expected to happen?
   
   Successful build (using a default value of compileSdkVersion?)
   
   ### What does actually happen?
   
   ```
   > Configure project :app
   Adding classpath: com.google.gms:google-services:4.3.8
   Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
   
   FAILURE: Build completed with 2 failures.
   
   1: Task failed with an exception.
   -----------
   * Where:
   <<snip - an error in another plugin>>
   ==============================================================================
   
   2: Task failed with an exception.
   -----------
   * What went wrong:
   A problem occurred configuring project ':app'.
   > compileSdkVersion is not specified. Please add it to build.gradle
   
   * Try:
   > Run with --stacktrace option to get the stack trace.
   > Run with --info or --debug option to get more log output.
   > Run with --scan to get full insights.
   ==============================================================================
   ```
   
   ## Information
   
   I added this to my config.xml
   ```
   <preference name="android-targetSdkVersion" value="32" />
   ```
   both as a child of `<widget>` and also as a child of `<platform name="android">`, but it made no difference to the error. I also tried adding `android-compileSdkVersion `.
   
   
   ### Command or Code
   `ionic cordova build android`
   
   
   
   ### Environment, Platform, Device
   Windows
   
   
   
   ### Version information
   ```
   Ionic:
   
      Ionic CLI                     : 5.4.16 (C:\Users\weisean\AppData\Roaming\npm\node_modules\ionic)
      Ionic Framework               : @ionic/angular 5.3.1
      @angular-devkit/build-angular : 0.803.29
      @angular-devkit/schematics    : 8.3.29
      @angular/cli                  : 8.3.29
      @ionic/angular-toolkit        : 2.3.3
   
   Cordova:
   
      Cordova CLI       : 11.0.0
      Cordova Platforms : android 11.0.1-dev
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 17 other plugins)
   
   Utility:
   
      cordova-res : not installed
      native-run  : 1.5.0
   
   System:
   
      Android SDK Tools : 26.1.1 (C:\Build\Tools\Android\Sdk)
      NodeJS            : v16.14.2 (C:\Build\Tools\nodejs\node.exe)
      npm               : 8.5.0
      OS                : Windows 10
   ```
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [x ] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


-- 
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.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


[GitHub] [cordova-android] AndrWeisR commented on issue #1456: version 11: compileSdkVersion is not specified. Please add it to build.gradle

Posted by GitBox <gi...@apache.org>.
AndrWeisR commented on issue #1456:
URL: https://github.com/apache/cordova-android/issues/1456#issuecomment-1175662467

   I think this went away when I fixed the 1st mentioned task failure relating to another plugin - this can be closed.


-- 
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


[GitHub] [cordova-android] AndrWeisR closed issue #1456: version 11: compileSdkVersion is not specified. Please add it to build.gradle

Posted by GitBox <gi...@apache.org>.
AndrWeisR closed issue #1456: version 11: compileSdkVersion is not specified. Please add it to build.gradle
URL: https://github.com/apache/cordova-android/issues/1456


-- 
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