"Android SDK command adb : Not found" - android

I've installed Ruboto Gem and been following their wiki on how to proceed; however I keep getting this prompt every time I run the ruboto setup command:
Java runtime : Found
Java Compiler : Found
Apache ANT : Found
Android Package Installer: Found
Android Emulator : Found
Android SDK Command adb : Not found
Android SDK Command dx : Found
Platform SDK android-10 : Found
!!! Ruboto setup is NOT OK !!!
Java runtime : Found
Java Compiler : Found
Apache ANT : Found
Android Package Installer: Found
Android Emulator : Found
Android SDK Command adb : Not found
Android SDK Command dx : Found
Platform SDK android-10 : Found
!!! Ruboto setup is NOT OK !!!
Android tools not found.
Would you like to download and install it? (Y/n):
even after following through with the download and installation, the problem still persists. I had a similar problem with the dx before and I solved it in the PATH; but this one has no solution elsewhere.
Thank you!

re-download the Android SDK, and you would find that file in:
adt-bundle-linux-x86-20130522/sdk/build-tools/android-4.2.2/
$ sg552#youku:/sg552/adt-bundle-linux-x86-20130522/sdk$ ls build-tools/android-4.2.2/
$ aapt aidl dexdump dx lib llvm-rs-cc NOTICE.txt renderscript source.properties
and then, add it to your PATH:
# your ~/.bashrc file or ~/.bash_profile :
PATH=$PATH:$YOUR_ANDROID_HOME/build-tools/android-4.2.2/

Related

Installing packages using android command line tools

I'm trying to use the android sdk without installing Android Studio because of hardware constraints. SYSTEM INFO[https://i.stack.imgur.com/oIsS4.png ]
So I've been following this tutorial https://dev.to/jay_js/setting-up-flutter-without-android-studio-olo so far so good, up until sdkmanager "system-images;android-29;google_apis;x86_64"
When i try executing that code i get Warning: Failed to read or create install properties file. I went into my 'Android' directory and saw these files only:[https://i.stack.imgur.com/pY7KR.png ] (screenshot from my pc).
Further into tools directory:[https://i.stack.imgur.com/bD22G.png ]
Am i missing files or what?
NB i plan on using the sdk for visual studio code. Feel free to ask for more screenshots:)
For Linux Ubuntu:
Just execute the command below:
sudo chmod -R a+w [path/to/android/sdk]
Source:[https://github.com/bitrise-steplib/steps-install-missing-android-tools/issues/57 ]

How to fix 'java.lang.module.FindException: module java.se.ee not found' error when packaging my kivy application with buildozer

I'm trying package my kivy app (python3) but when i run the command buildozer -v android debug see this error
# Cwd /home/javier/.buildozer/android/platform/android-sdk
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.se.ee not found
# Command failed: /home/javier/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
I have this Java version
$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed mode, sharing)
I downloaded only sdkmanager Command line tools from here and put it in my root path but i don't had success.
I Saw in this post a solution and i did it but i don't solve the error.
I has a virtualenv with all dependencies installed. Also i edited the buildozer.spec and i was custom it
The Virtualenv is:
(envAppSinapsis)~/AppSin$ pip freeze
certifi==2019.3.9
chardet==3.0.4
Cython==0.28.2
docutils==0.14
idna==2.8
Kivy==1.10.1
Kivy-Garden==0.1.4
psycopg2==2.7.6.1
psycopg2-binary==2.7.6.1
pygame==1.9.4.dev0
Pygments==2.3.1
requests==2.21.0
urllib3==1.24.1
I think that error is related to something related to JAVA but I do not know what. I would appreciate your helps, and please, excuse my bad English.
I am working in Ubuntu 18
UPDATE
Print Screen Error
Up until a few days ago if you had installed openjdk-11-jdk/jre from the Ubuntu repos you would have found it was actually a version of Java 10 (https://askubuntu.com/questions/1037646/why-is-openjdk-10-packaged-as-openjdk-11).
java.se.ee has been deprecated in Java 9, 10 and removed in Java 11 (https://www.oracle.com/technetwork/java/javase/11-relnote-issues-5012449.html)
Unfortunately there is no simple way to get the Android tools like sdkmanager or avdmanager running with Java 11 yet.
I was able to get buildozer running on Ubuntu again with Java 10:
Download Java 10 Linux x64 JDK (.tar.gz) from http://jdk.java.net/java-se-ri/10
Untar: tar -xzvf jdk-10_linux-x64_bin_ri.tar.gz
Set PATH: export PATH=/path/to/inflated/jdk-10/bin:$PATH
was getting error License not accepted for SDK Build tools etc
solved by Installing
SDK Command Line Tools
Google Play licensing services
in SDK Manager > SDK Tools
helped me after getting frustrated for 2 hours, and hearing from everyone that only way is to downgrade Java
You can solve this error by downgrading Java or by executing the below command in your terminal.
export JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'
Also, don't download the platform tools yourself, let buildozer take care of that.
If the above command doesn't work try deleting the buildozer files from your app and rebuilding your application.

ruboto Setup with Windows 8, apache ant not found

Hi I am trying to setup Ruboto on my Windows 8 and getting the following error even if say yes to download and install Apache via command prompt. Any help is appreciated
C:\>ruboto setup
Java runtime : Found
Java Compiler : Found
Apache ANT : Not found
Android Package Installer: Not found
Android Emulator : Not found
Intel HAXM : Not found
Android SDK Command adb : Not found
Android SDK Command dx : Not found
Platform SDK android-15 : Not found
!!! Ruboto setup is NOT OK !!!
Apache ANT was not found.
Would you like to download and install it? (Y/n): y
Downloading...
Installing apache-ant-1.9.0-bin.tar.gz...
F, [2014-10-05T09:58:23.048000 #15164] FATAL -- : not in gzip format (Zlib::Gzip
File::Error)
org/jruby/ext/zlib/JZlibRubyGzipReader.java:156:in `initialize'
org/jruby/ext/zlib/JZlibRubyGzipReader.java:85:in `new'
org/jruby/ext/zlib/JZlibRubyGzipReader.java:105:in `open'
download ant your self, and unzip to folder "c:\ant" , and udpate PATH with set PATH=c:\ant\bin;%PATH%" , now rerun ruboto setup
you may want to update your system path in windows, so the next time you open a cmd prompt you dont have to add ant path.

cordova error ENOENT

I'm trying to add android platform using cordova but i'm getting that error.
I have problem adding wp7, wp8 and windows 8 as shown below:
I tried a few things found here Phonegap Build android - error "Adding the android platform" ENOENT but doesnt help me. Anyone have any idea how to solve this??
If after type android in cmd says: 'xcopy' was not recognized.
then add to your path: %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
After 3 days trying to solve the same issue, finally I found the solution. Thank's to:
Installing Phonegap on Windows 7 : The command 'android' failed
(I can't add comments yet)
Download and install node.js
http://nodejs.org/
Install ant using brew and set ANDROID_HOME to your path.
Download and install Homebrew by executing following command in terminal:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Install Apache Ant via Homebrew by executing
brew install ant
set ANDROID_HOME to your path
%ANDROID_HOME%;

NDK - Error trying to generate a build.xml file for Hello-jni

I just installed Android NDK, r5b, and while trying to follow the steps from Exploring the hello-jni Sample, on the command line I receive the error:
MacBook-2:~ mvermant$ cd ndk/samples/hello-jni
MacBook-2:hello-jni mvermant$ android update project -p . -s
-bash: android: command not found
I'm using Eclipse Helios release 2 with Android SDK r10 and ADT 10.0.0 on MAC 10.6.6. I have also checked to have GNU Make 3.81, and installed GNU Awk(though I am not sure it's in the right place).
I've searched a lot, and seems there might be a class path missing somewhere, but I can't figure out where exactly and what to do to fix it.
You should make sure the tools directory of your android-sdk is on your (shell) path.
Something like:
export PATH="/path/to/sdk/tools:$PATH"
before you execute your command.
In general you will also need two other directories to be on your path:
/path/to/sdk/platform-tools - for adb and other android sdk tools
/path/to/ndk - for ndk-build and ndk-gdb, which are ndk tools
You can also do some setup so that you don't have to run these commands every time you open Terminal.

Categories

Resources