Android SDK Tools: Not compatible with Other - android

Just download latest Android SDK version from Android developers site, run ./android tool (i use Mac OS X 10.7.5) and i got next error:
Android SDK Tools: Not compatible with Other
http://qblx.co/ZCrpcI
So, what does it mean? What is wrong?

Never saw that. Better uninstall and reinstall everything. Clean up (rm -rf) the android sdk folder and reinstall.

I resolved this issue, it was Java 1.7 preferences, just removed Java 1.7, here are 2 links about this issue:
http://dhruba.name/2012/08/20/adding-a-jdk-and-sources-to-eclipse-on-a-mac/
http://emmanuelbernard.com/blog/2012/10/31/no-more-java-preferences-for-you/

Related

Error Initializing ADB: Android Debug Bridge not found [duplicate]

After updating Android Studio to 2.0 l am getting this error unable to obtain debug bridge and Android Device Monitor does not open. Anyone faced this error before?
I just open sdk manager and installed all android sdk tools and done.
Check whether you need to install "Android Sdk Platform Tools" in the Android SDK Manager.
Somehow, after installing Android Studio from the bundle (for Linux) I lacked the "platform-tools" directory in "Android/Sdk", where the adb executable resides. Installing the platform tools helped. It was easier to find in the standalone sdk manager.
This is because you deleted the adb.exe (it might be your antivirus who deleted it),that resided in the platform tools in the android sdk folder.
What you need to do is to delete the current platform-tools in the sdk manager program and re install it all over again.
I installed the right sdk version that matched my virtual device android version
I am also running the same problem when update android studio from 1.4 to 1.5 stable version. When I run adb command from terminal then i found following error :
bash: ./adb: cannot execute binary file: Exec format error
After R&d I found that this error occurs due to unsupported architecture. In my case:
I am using ubuntu14.04 LTS 32-bit. I observed that after updation, lib folder under platform-tools converted to lib64. I think above error occurs due to 32-bit architecture because after updation 32-bit support removed.
For permanent solution upgrade you system to 64-bit architecture.
Quick solution is to replace the updated platform-tools folder with old one that containing the lib folder instead of lib64.
I think 32-bit architecture support for android development stopped by google for future releases. But I am not sure.
I am phase these error when updating Android-SDK Plateform-Tools 23.1 in Android SDK Manager
i am worked on ubuntu 14.04 [32bit] that is not supporting with Plateform-Tools 23.1 it is only supporting in 64bit Operating System architecture that's why downgrade my Plateform-tools 23.0
it works perfect...!!!
Go to: Android Studio Settings > Appearance & Behavior > System Settings > Android SDK:
If path for SDK are text in red, change to your SDK folder and click ***APPLY***
Open the standalone SDK manager and install the platform tools package.

Error when building android APK

I have Android-studio 2.3.2 (which is android-studio-ide-162.3934792-linux.zip) installed, which is the latest stable version. I am using fedora 24. I am using meteor 1.4.4.2
When I build an APK using "meteor build" I get this error:
While building Cordova app for
platform Android: Could not find gradle wrapper within Android SDK.
Might need to update your Android SDK. Looked here: ~/Android/Sdk/tools/templates/gradle/wrapper
It seems to me the path to gradle wrapper has changed on the latest version of Android-studio. I don't have a previous version of Android-studio to prove this though. I've searched for previous versions of Android-studio and could not find them. I have searched for a solution but there is no one out there who seems to be solving this issue.
You will find a solution in this other thread and some explanation in this answer
The explanation is that the linux version of cordova does not search for gradle in the Android studio install folders like for Windows (and even for windows it does not find it if android studion is not installed in c:\program files\android\android studio) or Mac .
On Linux (and maybe for Mac&Windows in future versions of Cordova), you have to install a version of gradle and add it to your path (way to install gradle depends on the version of Linux you're using)
The behaviour was different in the past because android sdk was not inside Android studio like it is now. You could find gradle in the ANDROID_HOME/tools folder.
With recent upgrades, Android SDK structure has changed and it is now part of android studio.
Installing android-sdk_r24.4.1-linux.tgz which installs version 25 or higher version by default solved the problem for me. Because I could not find a way to uninstall Android Studio I had to uninstall and re-install my linux.
See https://gist.github.com/rolandboon/0a5abe1d9c6c515c59ec for downloading and installing the sdk

Error:Unable to obtain debug bridge in android studio

After updating Android Studio to 2.0 l am getting this error unable to obtain debug bridge and Android Device Monitor does not open. Anyone faced this error before?
I just open sdk manager and installed all android sdk tools and done.
Check whether you need to install "Android Sdk Platform Tools" in the Android SDK Manager.
Somehow, after installing Android Studio from the bundle (for Linux) I lacked the "platform-tools" directory in "Android/Sdk", where the adb executable resides. Installing the platform tools helped. It was easier to find in the standalone sdk manager.
This is because you deleted the adb.exe (it might be your antivirus who deleted it),that resided in the platform tools in the android sdk folder.
What you need to do is to delete the current platform-tools in the sdk manager program and re install it all over again.
I installed the right sdk version that matched my virtual device android version
I am also running the same problem when update android studio from 1.4 to 1.5 stable version. When I run adb command from terminal then i found following error :
bash: ./adb: cannot execute binary file: Exec format error
After R&d I found that this error occurs due to unsupported architecture. In my case:
I am using ubuntu14.04 LTS 32-bit. I observed that after updation, lib folder under platform-tools converted to lib64. I think above error occurs due to 32-bit architecture because after updation 32-bit support removed.
For permanent solution upgrade you system to 64-bit architecture.
Quick solution is to replace the updated platform-tools folder with old one that containing the lib folder instead of lib64.
I think 32-bit architecture support for android development stopped by google for future releases. But I am not sure.
I am phase these error when updating Android-SDK Plateform-Tools 23.1 in Android SDK Manager
i am worked on ubuntu 14.04 [32bit] that is not supporting with Plateform-Tools 23.1 it is only supporting in 64bit Operating System architecture that's why downgrade my Plateform-tools 23.0
it works perfect...!!!
Go to: Android Studio Settings > Appearance & Behavior > System Settings > Android SDK:
If path for SDK are text in red, change to your SDK folder and click ***APPLY***
Open the standalone SDK manager and install the platform tools package.

Android SDK tools setup "Application error"

I'm trying to install the Android SDK tools on my Windows XP SP3. I have jdk1.5.0_06 installed, but the Android SDK setup refuses to with the error in the following image. This happes in the next screen after detecting the JDK instalation.
Is this a known issue? And is there a solution?
Not sure about what the error is. But strongly recommend that you go with JDK 1.6.x version or 1.7x for Android development.
download the installer again & see if it solves the issue. Before installing Android SDK, make sure you have jdk installed on your system. Alternatively you can install eclipse adt plugin & it will automatically install the Android SDK for you. Installing the Eclipse Plugin

Android ADT error, dx.jar was not loaded from the SDK folder

I just downloaded Eclipse Galileo and installed ADT10 and tried to a phonegap app using this guide: http://www.phonegap.com/start
But each time i try to build im getting this error:
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
I know that there are already some questions/answers about it in this forum but they didnt work for me.
This is caused by incomplete/messy upgrade to latest version which results in dx.jar missing from {Android SDK dir}\platform-tools\lib\.
Solution:
Find your latest dx.jar in {Android SDK dir}\platforms\*
and copy it to:
{Android SDK dir}\platform-tools\lib\
Restart eclipse, clean your project and everything should work as expected.
(If platform-tools\lib directory is missing entirely you will have to reinstall "Android SDK platform-tools" using SDK manager. After reinstall dx.jar should be in there so no copying will be needed)
If you can't find dx.jar in any of {Android SDK dir}\platforms\* subdirs you will have to start SDK manager and install Android 1.6 SDK.
For example on my machine latest was in {Android SDK dir}\platforms\android-4\tools\lib\.
(I did not find any newer version as of 2012-01-22 Android SDK R15).
I really hope that this is useful for someone because I've wasted half a day investigating and looking for solution of such a trivial bug... :-(
platform-tools\lib folder was missing after upgrade (my eclipse was open).
close eclipse, using sdk manager uninstall and install "Android SDK platform-tools".
I just encountered the same problem yesterday, in Eclipse of Neon Release (4.6.0).
It's a compatible issue related to 26.0.0 of android-sdk "build-tools".
Simple Solution:
Delete "26.0.0" in "build-tools" directory
Use "25.0.2" instead
Restart eclipse
Other Solution:
add this in the project.properties of your project:
sdk.buildtools=25.0.2
Good luck!
I had this problem in Eclipse since I upgraded from build-tools 25.0.0 to 26.0.0
I just add "sdk.buildtools=25.0.0" in my project.properties and it works again
my project.properties:
target=android-23
sdk.buildtools=25.0.0
android.library.reference.1=../design
I was running Eclipse Neon.2 and the Android SDK Build-tools + platform-tools version 26 on Mac OS 10.12.4 and none of the above answers (including the accepted answer) worked for me.
What did work was to
Quit Eclipse
Remove the folder <android-sdk>/build-tools/26.0.0 and to install the (older) version 25.0.3 of the build tools through the Android SDK manager.
Start Eclipse again
It happened to me, either, and it happens because I've changed to win7, and install the latest ADT to eclipse, but I used my old Android SDK. Finally, I fix this problem by updating my Android SDK to the latest version.
For me, eclipse was looking in the wrong place for the SDK Manager. To fix this I did
Window/ Preferences/ Android/ SDK Location
NOTE: The SDK manager tells you what dir it is using near the top of the UI.
I had installed a new version of eclipse that has the ADT bundled up from the Android developer site, but when I opened eclipse it was looking at the old SDK.exe location.
hth
I haven't seen this specific problem, but you may get better results with Eclipse Helios or Indigo. Galileo is getting old and is unlikely to be tested as much as the more recent Eclipse platforms.
sometimes you need just to restart Eclipse after the update, it worked for me to fix that error
Also, make sure that the version of the ADT is supported by the AndroidSDKTools. That fixed my problem. In the SDK Manager, File->Reload will lead to the latest revisions.
Try using Eclipse Indigo: http://www.eclipse.org/downloads/ and follow the instructions on how to install Android ADT from: http://developer.android.com/sdk/eclipse-adt.html
Windows 7 64 bit, Intel i7
This happened to me as well after I updated the SDK to be Jelly Bean compatible. The folder platform-tools\lib was gone. I also wasn't able to uninstall/reinstall the program-tools in the SDK manager at first. It gave me the error that a particular file in the android\temp folder was not there. I had to change the permissions on the android folder to allow every action, and that solved it.
Even after reinstalling "Android SDK platform-tools" in my UBuntu-16.04 LTS problem persisted.
I am using Eclipse-Oxygen.
Copying dx.jar from /build-tools/25.0.3/lib into /build-tools/26.0.0-preview/lib solved my problem.
Updating Android SDK platform-tools with the Android SDK Manager and restarting Eclipse did it for me
If you have updated the ADT tools and also SDK platform and you see the above error, restart Eclipse.
Unzip the updated Android SDK in your current SDK folder. This solved my problem.
It's work for me do this
Delete "26.0.0" in "build-tools" directory
Use "25.0.2" instead
Restart eclipse

Categories

Resources