Meteor Cordova error running android - java

When I tried to use Meteor-cordova to run an app with android, I get this error:
To add the android platform, please install a JDK. Here are some directions: http://openjdk.java.net/install/
Failed to install android_bundle: Failed to run bash
I already have installed JDK but the error still there. Also I tried to install Android SDK manually, but it doesn't work.
Does someone know why this happened and how to fix it?

On Oracle Linux 6
I had this error after
yum install java-1.7.0-openjdk
solution was to install the development package
yum install java-1.7.0-openjdk-devel
then meteor add-package android worked

you should install jdk to be able to compile cordova apps. On ubuntu or ubuntu based distros you can do that so:
sudo apt-get install openjdk-7-jdk

Related

Not able to install protobuf-compiler on macOS Big Sur

I am trying to execute sudo apt install protobuf-compiler on macOS, but I am not able to install the protobuf-compiler, nor to update the apt.
So far I tried, installing JDK, adding path to ./zshrc and a few other things I searched on Google but no success. The picture below shows the error I get when I try to install protobuf-compiler or update using apt.
What might be the issue? Any answer is appreciated :)
On MacOS, one of the most popular package managers is homebrew, and the command to invoke it is something like brew install <packagename>. For the protobuf package, it would be:
brew install protobuf

Java Developer Kit executable unable to be found

I'm trying to install mysql on my Mac using the command
sudo apt install mysql
and it said I needed to install JDK on it. So I installed JDK but am receiving an error saying:
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/apt" (-1)
I have updated my env path to
JAVA_HOME=/Library/Java/Home
But when I install JDK theres no java file anywhere in my library, even though when I check to see if I have installed it, it is successfully found. I've installed Homebrew but do not know what package to install after the initial installation, or if this is the problem.
Any help would be appreciated.
If you are using Mac it would be much easier to install Homebrew from https://brew.sh and then use $ brew install mysql
see this link for the apt and yum command usage

How Install jdk 8 in android in ubuntu 14.04

How can I install jdk 1.8 in android-studio using the command line in Ubuntu 14.04?
After installation of jdk 8 and its connect in android-studio it gives these errors in xml:
Image:-
Image:-
write following commond in your terminal
sudo apt-get install openjdk-8-kdk
You might need to set what your default java version is. So that when the IDE (Android Studio) is loaded, it uses that one.
Take a look at this link

Unable to install Android Studio in Ubuntu [duplicate]

This question already has answers here:
Error: Unable to run mksdcard SDK tool
(10 answers)
Closed 6 years ago.
I'm using Ubuntu Gnome 14.04, and I have Java 8 installed (both the JDK and the JRE).
When I was installing Android Studio everything worked, but a message appeared saying:
Unable to run mksdcard SDK tool
How can I install Android Studio correctly, or how do I fix this ?
Presuming that you are running the 64bit Ubuntu, the fix suggested for "Issue 82711" should solve your problem.
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Update:
For Ubuntu 15.10 & 16.04
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
#warsong is right. Installing only lib32stdc++6 solved the problem.
For next uses I rewrite #warsongs comment in answer area.
sudo apt-get install lib32stdc++6
Update :
For Ubuntu 15.04,15.10,16.04 LTS & Debian 8
For Fedora (tested for Fedora 23/24) run
dnf install compat-libstdc++-296 compat-libstdc++-33 glibc libgcc nss-softokn-freebl libstdc++ ncurses-libs zlib-devel.i686 ncurses-devel.i686 ant
I understand the question is regarding UBUNTU, but I had similar problem in Debian Jessie 64bit and warsongs suggestion worked for it also.
When I ran studio.sh android studio would start, but when I tried to configure the android SDK I got the error
Unable to run mksdcard SDK tool
WHen I tried
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
Got error
E: Package 'lib32bz2-1.0' has no installation candidate
So took warsongs suggestion and only tried to install lib32stdc++6.
sudo apt-get install lib32stdc++6
After this was able to add the Android SDK into Android Studio.
Checkout this page
If you are running a 64-bit distribution on your development machine, you need to install additional packages first. For Ubuntu 13.10 (Saucy Salamander) and above, install the libncurses5:i386, libstdc++6:i386, and zlib1g:i386 packages using apt-get:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
The Problem is caused by mksdcard not being installed correctly.
if you are running 64 bit, do this to fix the mksdcard problem.
sudo dpkg --add-architecture amd64
sudo apt-get update
sudo apt-get install libncurses5:amd64 libstdc++6:amd64 zlib1g:amd64
and 32 bit:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
In SDK 6.0, the error message is different but means the same thing.
Unable to run mksdcard
None of these options worked for me on Ubuntu 12.10 (yeah, I need to upgrade). However, I found an easy solution. Download the source from here: https://github.com/miracle2k/android-platform_sdk/blob/master/emulator/mksdcard/mksdcard.c. Then simply compile with "gcc mksdcard.c -o mksdcard". Backup mksdcard in the SDK tools subfolder and replace with the newly compiled one. Android Studio will now be happy with your SDK.
For Linux Mint run
sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0 lib32stdc++6
If you run sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0 lib32stdc++6
and got a message like: "The following packages have unmet dependencies: lib32stdc++6 : Depends: lib32gcc1 (>= 1:4.1.1)".
You can do something like this tut: https://askubuntu.com/questions/671791/lib32stdc6-package-depends-on-gcc-base-but-my-installed-version-is-newer
This issue arises when your 64 bit os tries to install the Android SDK which in turns tries to install some 32 bit binaries and thus is the issue of compatibility.
Open an additional terminal and type
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
would help to install all the required binaries. After this, start the afresh the Android SDK installation process.

How do I install Java JNA in Ubuntu server 14?

I'm trying to install the java native library from the command line as
sudo apt-get install libjna-java
but Ubuntu tells me
E: Unable to locate package libjna-java
and even if I do cache search, there is nothing there matching that package.
How do I install Java JNA in Ubuntu server 14?
libjna-java is in universe repository and it seems that you dont have it enabled.
To enable, run
sudo add-apt-repository universe

Categories

Resources