You are not logged in.

#1 2021-06-24 19:38:54

DJArch
Member
Registered: 2021-06-23
Posts: 19

Problem with android-studio

I installed android-studio from the AUR as described in the Wiki.

The application starts fine, but when I tried to open a project it gave me an error like

invalid gradle jdk configuration found

After a bit of googling I installed the 5 packages for OpenJDK 16 described here (https://wiki.archlinux.org/title/Java#C … nvironment).

This is the output of javalinux-java status:

[me@frankenstein ~]$ archlinux-java status
Available Java environments:
  java-16-openjdk (default)

I kept getting the same error, so following this instructions (https://stackoverflow.com/questions/303 … tion-found) I went into File > Project Structure > JDK location in Android Studio and changed whatever was there (can't remember what it was) to:

 /usr/lib/jvm/java-16-openjdk 

I now get the following error when I try to open my project:

 Could not initialize class org.codehaus.groovy.runtime.InvokerHelper 

And the Event log in Android Studio also says:

9:33 PM	Android Studio is using the following JDK location when running Gradle:
					/usr/lib/jvm/java-16-openjdk
					Using different JDK locations on different processes might cause Gradle to
					spawn multiple daemons, for example, by executing Gradle tasks from a terminal
					while using Android Studio.

Can someone advice on what should I do. It is my first time ever running linux (just did my fresh install yesterday) and I am a bit stuck now.

Offline

Board footer

Powered by FluxBB