I have the android-studio folder and am trying to execute ./studio.sh.
The problem appears as the following:
/android-studio$ ./studio.sh
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error: Could not find or load main class com.intellij.idea.Main
Caused by: java.lang.ClassNotFoundException: com.intellij.idea.Main
Anyone else have this problem?
I have java installed already.
delete folder
linux
i delete and run and work for me below directory
~/.config/JetBrains/
enter link description here
Related
I am developing my app using React Native and now when I open the android project in Android Studio, during gradle sync it is throwing this error:
A problem occurred evaluating settings 'MyApp'.
No such property: logger for class: org.gradle.initialization.DefaultProjectDescriptor
Caused by: groovy.lang.MissingPropertyException: No such property: logger for class: org.gradle.initialization.DefaultProjectDescriptor
I tried installing yarn add react-native-unimodules but this won't resolve.
I am using NVM to used node version 14.17.3
Android gradle plugin version: 4.1.0
Gradle version: 6.8
Please help me resolving this as I am stuck on this since 2 days now.
I had the same problem I tried different node versions with nvm and also downgrade android studio but none worked for me. also, I tried installing node via homebrew. What I did was to start android studio using
open -a /Applications/Android\ Studio.app
The problem was that android studio couldn't find node so in this case starting with the above command fixed the problem for me and I used nvm
I was able to resolve this issue by fully shutting down my MacBook Pro and starting it up again. Once started I loaded my project in Android Studio once again and let the gradle build finish.
Fixed this by downgrading Android studio to version 4.1.3.
Before that I installed Node through NVM but it didn`t help
I encountered this exact error on a new MacBook M1 where I formerly used Java 8 with Rosetta (from the migration). After installing Zulu Java 8/11 with ARM-64bit support, I could not build the React Native App anymore.
I simply deleted the .gradle folder (e.g. in ~/.gradle) and executed the build command again. It downloaded Gradle from scratch and the build worked.
The real fix is stackoverflow.com/a/70891538/9878385
Run chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv and this actually fixes the problem, rather than just working around the problem.
Check Android Studio for available updates
Android Studio -> Check For Updates
I have updated Android Studio and Tools to the latest version and this solved the problem. Currently I have Android Studio Chipmunk | 2021.2.1 (Build on April 28, 2022)
I was facing the same issue. It could be some problem with permissions on Android Studio installation.
This might help you to open the project without this error, but it doesn't definitively solve the problem. (Ubuntu linux)
cd App_Name/android/
android-studio .
I had same error using ReactNative and NVM. Installing NodeJS through package manager solved the problem. I guess NVM environment wasn't loaded in Android Studio environment.
Not sure what happened. I was using it and then switched to editing an api file in Geany, then went back to Android Studio and got this error below. Tried uninstalling and reinstalling but still no go. Any ideas?
Internal error. Please refer to https://code.google.com/p/android/issues
java.lang.NoSuchMethodError: com.intellij.ide.plugins.PluginManagerCore.loadDescriptors()[Lcom/intellij/ide/plugins/IdeaPluginDescriptorImpl;
at com.a.a.b.b.ar.a(ar.java:121)
at com.a.a.b.b.ar.a(ar.java:71)
at com.intellij.idea.MainImpl.start(MainImpl.java:19)
at com.intellij.idea.StartupUtil.startApp(StartupUtil.java:303)
at com.intellij.idea.StartupUtil.prepareApp(StartupUtil.java:245)
at com.intellij.ide.plugins.MainRunner.lambda$start$0(MainRunner.java:47)
at java.lang.Thread.run(Thread.java:748)
-----
JRE 1.8.0_242-release-1644-b3-6222593 amd64 by JetBrains s.r.o
/snap/android-studio/94/android-studio/jre/jre"
Remove lib folder .local/share/Google/AndroidStudio4.1/marketplace
or execute command
rm -rf ~/.local/share/Google/AndroidStudio4.1/marketplace/lib
It's working for me :-)
in ubantu: go to -> HOME/.LOCAL/SHARE/GOOGLE/ANDROIDSUTDIO4.1/marketplace
marketplace file need to remove then start android studio working fine
I am trying to install OpenJDK 11 and IntelliJ IDEA Community Edition 2019.2. but I get the error below. I also experienced the same issue when I was installing Android Studio. Please help. How can I resolve this?
enter image description here
IntelliJ IDEA 2020.1 has a feature to automatically download and configure the JDK for you. If JDK installer doesn't work for you, it may be an option.
I have error after minor update Android Studio. Ubuntu 18.04, Android Studio 3.1.2
Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/private/Android/Sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip''
Caused by: net.rubygrapefruit.platform.NativeException: Could not start '/home/private/Android/Sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip'
Caused by: java.io.IOException: Cannot run program "/home/private/Android/Sdk/ndk-bundle/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/mips64el-linux-android-strip" (in directory "/home/private/StudioProjects/yamatrack-cart-app-android/viewer"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
2 solution if you use an older gradle version
don't use the latest ndk 17 because they have removed the mips build scripts
copy the mips folder from ndk 16 under toolchain into ndk 17.
Second solution worked for me even with configured nbi filters.
I was getting this error when trying to build an older release of my code which was using an old version of the Android Gradle Plugin.
I found that upgrading to the latest Android Gradle plugin (3.1.2) fixed this. Although it is a bit worrying that I can't just checkout an older version of my code and build it with the plugin version from that release.
Although the build now appears to succeed with the newer Gradle plugin, I am getting this slightly worrying warning:
Unable to strip library 'MyApp/build/intermediates/transforms/mergeJniLibs/develop/debug/0/lib/mips/libsqlite3x.so' due to missing strip tool for ABI 'MIPS'. Packaging it as is.
I have this in my build.gradle as I depend on some native libs:
ndk {
abiFilters "armeabi-v7a", "x86"
}
I just installed android-studio on my kubuntu 17.10 pc.
After creating a new project, android-studio tries to sync it and gradle shows the following error.
Error-Log
I found already some answers here but they didn't work out.
I ran gradle as root, reinstalled android studio, removed the gradle cache folder, reinstalled the sdk, downloaded the sdk from the google page etc.
I can provide more information if you need some.
Update: I tested to execute aapt2 by hand with aapt2 m and got the error in format of executable
Kind regards