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

   # Bug Report
   
   ## Problem
   
   
   ### What is expected to happen?
   I expected to build and run my Cordova project on Android using the command 
```cordova run android --target=Pixel_3a_API_33_x86_64``` successfully.
   
   
   
   ### What does actually happen?
   Instead, I encountered the following error during the build process:
   
   ```
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Could not open settings generic class cache for settings file 
'C:\Users\user\Desktop\Cordova_Apps\Crime_Map_App\platforms\android\settings.gradle'
 (C:\Users\user\.gradle\caches\7.6\scripts\dqjrgsw17c62wbpoagod92e1e).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' 
Unsupported class file major version 64
   
   * 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.
   
   * Get more help at https://help.gradle.org
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 8.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   See 
https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings
   
   BUILD FAILED in 10s
   Command failed with exit code 1: 
C:\Users\user\Desktop\Cordova_Apps\Crime_Map_App\platforms\android\gradlew -b 
C:\Users\user\Desktop\Cordova_Apps\Crime_Map_App\platforms\android\build.gradle 
cdvBuildDebug
   
   ```
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   The error message mentions an unsupported class file major version 64. I am 
using Cordova version 12.0.0 with Cordova Android platform version 12.0.0. The 
Gradle version on my system is 8.2.1, and I have Java version 20.0.1 set up.
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   To reproduce the issue, make a new Cordova project, add android as a 
platform and run the following command in the command prompt or terminal:
   
   ```
   cordova run android --target=Pixel_3a_API_33_x86_64
   ```
   
   With "Pixel_3a_API_33_x86_64" being the name of your emulator.
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   I am experiencing the issue on a Windows 11 machine.
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova CLI version: 12.0.0
   Cordova Android platform version: 12.0.0
   Gradle version: 8.2.1
   Java version: 20.0.1
   Operating System: Windows 11
   
   
   
   ## 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to