Skip to content
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

Build fails with Cordova-Android 13.0.0 #280

Open
degroundshaker opened this issue Jul 30, 2024 · 3 comments
Open

Build fails with Cordova-Android 13.0.0 #280

degroundshaker opened this issue Jul 30, 2024 · 3 comments

Comments

@degroundshaker
Copy link

degroundshaker commented Jul 30, 2024

Bug Report

Expected Behaviour

App must compile fine with sdk Target set to 34

Actual Behaviour

Project fails to compile

Reproduce Scenario (including but not limited to)

ionic cordova platform add android@latest
ionic cordova build android

Steps to Reproduce

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

cordova-android 13.0.0
Jdk 17
Gradle 7.5

@DanielDornhardt
Copy link

@degroundshaker FYI, some additional info - like error logs or actual screenshots from the failure might be helpful?

@ksch10bob
Copy link

@degroundshaker
did you solve your problem?
If yes, what did you, to solve it?
If no, please provide some more info.

@erisu
Copy link

erisu commented Nov 13, 2024

Please provide more information.

For example, the build logs that show the error message. Preferably, provide the entire build logs, as error messages may not always appear at the end.

I have tested building the project with no issues.

My environment setup:

% java -version
openjdk version "17.0.11" 2024-04-16
OpenJDK Runtime Environment Temurin-17.0.11+9 (build 17.0.11+9)
OpenJDK 64-Bit Server VM Temurin-17.0.11+9 (build 17.0.11+9, mixed mode)
% gradle --version

------------------------------------------------------------
Gradle 8.7
------------------------------------------------------------

Build time:   2024-03-22 15:52:46 UTC
Revision:     ---

Kotlin:       1.9.22
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4, 2023
JVM:          17.0.11 (Eclipse Adoptium 17.0.11+9)
OS:           Mac OS X 14.6.1 aarch64

My system has a newer version of Gradle installed, but it meets the requirements documented for the Cordova-Android 13.0.0 release. See Here

Project creation and build steps:

1. Created a blank project:

cordova create cordovaTest com.erisu.cordovaTest

2. Added project files for testing purposes:

For example:

  • Updated config.xml
  • Added GoogleService-Info.plist
  • Added google-services.json
  • Updated www/js/index.js

3. Added the latest Cordova-Android platform (13.0.0):

cordova platform add android@latest

4. Added the latest Push Plugin release (4.0.0):

cordova plugin add @havesource/cordova-plugin-push@latest

5. Built the project with the Cordova command:

cordova build android

After following these steps, I also tried opening the project in Android Studio and building it, as well as running it on the emulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants