Meteor run android CordovaError: Requirements check failed - android

I get this error while running in Android using meteor run android:
[CordovaError: Requirements check failed for JDK 1.8 or greater]
name: 'CordovaError',
message: 'Requirements check failed for JDK 1.8 or greater'
I'm using Ubuntu 14.04 LTS 32bit, Meteor 1.5.2.1
$ java --version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Server VM (build 25.144-b01, mixed mode)

Related

JDK version error when building android app cordova

Im trying to convert angular appliacation to an apk using cordova. When running
cordova build android
I get the following error
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=/home/mohit/Android/Sdk (recommended setting)
ANDROID_HOME=/home/mohit/Android/Sdk (DEPRECATED)
Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.7
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
Running command:
java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_version/bin/java
update-alternatives: error: alternative /usr/lib/jvm/jdk1.8.0_version/bin/java for java not registered; not setting
It's because you use OpenJDK where cordova requires Oracle JavaJDK. Version numbers do not match. Install Oracle JDK.
https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html

configuration jdk in android studio with ubuntu 17.10 not found java home

When I open Android studio, I am getting the following error:
java_home not found
My configuration :
Android Studio 3.0
Ubuntu 17.10 Gnome
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
I ran: sudo apt-get install oracle-java8-set-default
(and installed to /usr/lib/jvm/jdk1.8.0/)
I edited "/etc/environment" and set JAVA_HOME="/usr/lib/jvm/jdk1.8.0/"
And added the following lines to "/home/faiberts/.bashrc" and "/root/.bashrc":
export JAVA_HOME="/usr/lib/jvm/jdk1.8.0/"
export PATH=$JAVA_HOME/bin:$PATH"
Do I have some error in some step or it is necessary to change some configuration because I am confused since this is my first time trying to do development in android.
Thank you in advance for your valuable help.

ionic build android : Error :Failed to run “java -version ”

windows 10
ionic 1.7.15
please help me
ionic build android
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b15)
Java HotSpot(TM) Client VM (build 25.91-b15, mixed mode, sharing)
Error: Failed to run "java -version", make sure that you have a JDK installed.
You can get it from: http://www.oracle.com/technetwork/java/javase/downloads.
Your JAVA_HOME is invalid: C:\Program Files (x86)\Java\jre1.8.0_91
JAVA_HOME environment variable should be set to java jdk installation path folder not jre installation path. As per your error trace, your java home is set to jre path which could be the issue

$cordovaSQLite not working on AVD or Android device

Methods like : $cordovaSQLite.openDB(), $cordovaSQLite.execute() not working.
Below is my Enviornment of POC:
java version "1.7.0_91"
OpenJDK Runtime Environment (IcedTea 2.6.3) (7u91-2.6.3-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.91-b01, mixed mode)
Apache Ant(TM) version 1.9.3 compiled on April 8 2014
node --version
v0.10.25
cordova -version
4.3.1
ionic -version
1.7.12
Following is error in console if i run command: ionic run android -l -c
error Uncaught TypeError: Cannot read property 'openDatabase' of undefined, http://192.168.2.10:8100/js/ng-cordova.min.js, Line: 9

Cordova - Unable to access jarfile c:\...\cordova\appinfo.jar

I've created a cordova project with the following commands:
cordova create -d hello
cd hello
cordova -d platform add android
cordova -d build
cordova -d emulate android
and this last command output is:
Failed to get application name from appinfo.jar + AndroidManifest:
Output: Error: Unable to access jarfile
C:\hello\platforms\android\cordova\appinfo.jar
Any clues why this is happening?
Cordova -v : 3.09
ant -version: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
java -version:
java version "1.7.0_13"
Java (TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
SO: Windows 7 64-bits
I had the same error - turned out there was an incorrect version of Java in the System32 folder (see this answer).
Once I removed the incorrect files I was able to install on the emulator.

Categories

Resources