Comments (2)
JAVA_SDK error is due to Java 14 instead of Java 8.
On modern tooling, JDK 11 is the minimum required version, though JDK 17 would be recommended.
You don't have the ANDROID_HOME
environment variable defined, therefore cordova has to guess where your android SDK is installed. It's usually better if this is explicitly defined. Based on your output it looks like it's located at C:\Users\ASUS\AppData\Local\Android\Sdk
If have an opened command prompt/powershell, they will need to be re-opened after changing environment variables. Environment variables are loaded only when they are opened and will not automatically receive environment variable updates.
There is a problem with cordova docs suggesting you to install the latest command-line tools, but the latest version requires JDK 17. So you either need to use JDK 17, or use command-line tools version 10.0, and uninstall any other versions that is installed.
If you have the Android SDK Tools (Obsolete)
installed, then I'd also recommend uninstalling that. Those are the tools that only run on JDK 8 and they won't work with modern Android SDKs or run modern Android emulator images.
from cordova-android.
Thanks a lot it solved my issue.
Steps to reproduce
- Set ANDROID_HOME variable (In my case I've tried to save it but I've clicked cancel instead of OK)
- Download JAVA 17
- Add Gradle Path
from cordova-android.
Related Issues (20)
- Missing privateHelpers.extractStringFromManifest method. HOT 1
- Incoming Call FullScreen Intent On A Cordova Activity HOT 1
- Android 14 support ? HOT 1
- `ErrorURL` preference is not working HOT 2
- cordova-android build tools not found issue HOT 1
- Will Cordova Android 13 support Kotlin 1.9.x ? HOT 2
- Failed to register a ServiceWorker with Cordova 10 HOT 6
- Target date for support to API34 HOT 2
- DevTools cannot display source map properly HOT 2
- cordova-android12.0.1 onRequestPermissionsResult never used HOT 1
- Cordova app on Android crashes after choosing file with native HTML file input, only on Android 13 HOT 3
- Update docs in regards to using adaptive icons with background colors HOT 3
- Splash screen icon not show at first launch HOT 1
- Execution failed for task ':app:mergeReleaseResources'. HOT 2
- Panoramic images HOT 1
- backgroundMode plugin quirks HOT 2
- Cordova undefined when AndroidInsecureFileModeEnabled set to false HOT 2
- Push Notifications on Android 13 and higher devices HOT 1
- Black or blank screen seen after keeping application idle and then open the application in cordova version >= 10. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-android.