I just tried to install Android SDK into Eclipse Oxygen.1a Release (4.7.1a) and I just generate the first Android project... "Hello world".
I connect my device, try to run it...and Eclipse show me into the console
"Failed to load C:\Users\Luca Lombardi\android-sdks\build-tools\27.0.0\lib\dx.jar"
"Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!"
I checked into this folder, but the dx.jar already existes into this folder!
I already tried to:
Clear the cache and reloaded the package
Tried to install again the Android SDK
Copy the dx.jar into the folder
But nothing has work properly.
Have someone some ideas in order to fix this problem?
I don't beleive that is so difficult start to develop on android...
It happened to me, I also installed the latest Android SDK Build-tools(V 27.0.0), now I have changed to old Android SDK Build-tools(V 25.0.3). now it is fine for me.
new path:android-sdks\build-tools\25.0.3\lib
Related
So I recently deleted the -studio64.exe.vmoptions file and the next time I launched it, it's unable to detect common libraries like 'String' and 'System'. I tried to download Jetbrains IDE also, and it throws the same error-
https://i.stack.imgur.com/EV3EV.png
What I have tried so far:
Change gradle build version
Reinstall Android studio
Uninstall Android studio completely- including jdk and sdk dependencies. Upon reinstallation (technically from scratch), the issue still persisted.
Any help will be appreciated. Thanks!
Recently I upgraded my Android Studio to 3.1 and also my gradle to 4.4.
Since then android studio doesn't let me open anything. (Any project , any file location, etc). I am able to create a new project but if try opening an existing one it just freezes. And then I have to kill it through Task Manager.
I am also able to open the settings page through welcome wizard. There also I tried to change the gradle version manually, again while browsing to the location it just gets hanged. Same way as above
I tried upgrading the Java version, installing/uninstalling android studio and everything else I can but its the same.
Any help or suggestions will be appreciated
I encountered similar issue. Please check the system Environment Variable, the JAVA_HOME path should be set correctly according to Java installed in your PC; something like this in my PC "C:\Program Files\Java\jdk1.8.0_172"
This resolved the issue for me.
Cheers!
Herbs
I'm on Linux (Arch Linux) and using Android Studio 2.3.1
When creating a new empty project in Android Studio I get the error:
Gradle sync failed:
org.gradle.internal.jvm.UnsupportedJavaRuntimeException.assertUsingVersion(Ljava/lang/String;Lorg/gradle/api/JavaVersion;)V
Consult IDE log for more details (Help | Show Log)
It seems that there is something with the java version. I have openjdk-8 installed and also tried with Oracle JDK version 8 (also tried with version 7).
Things i've tried:
Using installed gradle or gradle that comes with Android Studio
Removing ~/.gradle and ~/.android.
Update:
If I enter the project directory and run gradle build i.e. using my installed gradle version it seem to build. However, being able to run gradle from Android Studio seem essential to even use Android Studio.
I upgraded to Android Studio 2.3.2 and then this particular problem was solved.
I did not use the package from AUR (Arch User Repository) when upgrading, instead I used the Android Studio "Check for updates" and upgraded that way. I don't know if that matters.
Update:
Happened again when upgrading to Android Studio 3.0.1 from AUR. Installing the official build from http://developer.android.com works though so it's some issue with the build in AUR for ArchLinux.
I had the same problem AFAIK.
Firstly I had a version previous to 3.0.1 of Android, then I downloaded the Android zip package from the official website, then installed it and kept the same old preference files (or so). Then this problem appeared. What I did is uninstalling (thus deleted the android-studio folder in terms of Ubuntu) and installing it back again and it was solved.
On my new computer I downloaded eclispe Luna (4.4.2). I tried to install android on it (by going to https://dl-ssl.google.com/android/eclipse/ and installing all). It was installed, so I restarted eclipse and got the message:
Could not find SDK folder
And no android folder got created in any of my drives (its a new computer so I searched in any directory)! I removed eclipse, downloaded it again and tried and the same happend. I uninstalled DDMS and reinstalled it and the same happend. I uninstalled it and opened eclipse as administrator and reinstalled it and the same happend... If I click on Window -> Android SDK Manager I get that message and nothing happens.
What am I doing wrong? What am I missing? I am using the same workspace I used in my old computer that had worked fine with android (tough I used eclipse keplar, so when I opened the new workspace eclipse asked me to upgrage and I agreed).
Please don't tell me to move to Android Studio - my project in eclipse consists of many multiple sub projects and I really don't want to configure it a new (why the hell do we have Gradle?!)
It seems like you have only downloaded the plugin for eclipse. You also need to download the SDK from http://developer.android.com/sdk/index.html#Other
You should install Android SDK separately.
Here is the link to the page that will show you to install eclipse, adt and sdk.
Hope this helps.
I am assuming you are on a windows computer, so in Eclipse do the following:
Window -> Preferences -> Android
In the Android tab, there is a field saying "SDK Location". You can click browse and find where the folder "android-sdks" has been downloaded in your computer.
Set the path to that folder as "SDK Location"
It should be working now.
Usually the "android-sdks" folder is found under: C:\Users\< your-username >\android-sdks if it was downloaded from the ADT pluggin: https://dl-ssl.google.com/android/eclipse/
I am new to android but when I run the eclipse (which I installed ADT Plugin and android SDK) I found that my eclipse is not generating R.java file with a error message(as shown in figure)
How to rectify that ?
Thanks in advance
You should download the android bundle here http://developer.android.com/sdk/index.html
It is and eclipse version with everything needed for android already installed.
I had the same trouble as you, switched to this one and everything worked at the first try