Studio Upgrade

From Access Information
Jump to: navigation, search

Studio
Install Upgrade Hardware
SQLite
Create db Create table Update table Cursor Read Insert Update Delete Delete Table Delete db
Gmaps
Connect Position Offline Insert App 2 Cloud Cloud 2 App
Apps Engine
App Engine Android 2 App App 2 Android Google MX Apps Refunds
Emails
Receive Email Send Emails

Android Studio Upgrade

Download the latest version and extract the ZIP file to the same location as the current android-studio location, effectively over writing what you had.

Dealing with errors

Will not start

rm -rf ~/.android/

JDK Installation path

If you get an error due to this go to File -> Project Structure and change to using embedded JDK.

Android20.png

Wrong SDK Version

You are getting something like:

Error:A problem occurred configuring project ':app'.
> The SDK Build Tools revision (23.0.3) is too low for project ':app'. Minimum required is 25.0.0

This is after quite a long time since I did any work on this project and I have done upgrade to the Android Studio files.

Open the build.gradle (module: app), and change

   compileSdkVersion 23
   buildToolsVersion '23.0.3'

or what ever you have to what ever it needs to be.

I rebuilt the gradle and the system went and downloaded, in my case, the Android SDK Build-Tools 25.

Then I need to deal with support libraries out of sync. I used https://developer.android.com/reference/android/support/v7/app/AppCompatActivity.html to help with this.


Go to Tool -> Android -> SDK Manager

Wrong Java Version

ll After an update to CentOS, android studio would not start.

tools.jar is not in android studio classpath Please ensure JAVA_HOME points to JDK rather than JRE

Turned out the default version of jdk was 8. Check this out with:

alternatives --config java

which gave me

There are 3 programs which provide 'java'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.99-2.6.5.0.el7_2.x86_64/jre/bin/java
   2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
*+ 3           /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.71-2.b15.el7_2.x86_64/jre/bin/java

So to correct this I choose 1

Enter to keep the current selection[+], or type selection number: 1

Then android studio started correctly.

  • Did you find this page useful?
  • Do you have an issue that you have not yet fixed?

We can do this for you.

I am available for technical support. Please follow this link. Tech Support Request.
+64-6-880-0000 : ++1-808-498-7146 : help@ai.net.nz
Getting us to help you