There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Sudo rm -fr /Library/PreferencePanes/JavaControlPanel.Java is a programming language and computing platform first released by Sun Microsystems in 1995. I would recommend fixing this issue fully by first removing the Java you installed by running the following in your terminal: sudo rm -fr /Library/Internet\ Plug-Ins/ugin You then fixed the second error by forcing gradle (build tool) to look in the correct folder for your JDK. The JDK includes the compiler (javac) and tools (like javadoc and jdb) and is what is needed to build your app. When you install Java (JRE) and try build your app, the build now finds Javas JRE which has everything it is needs to run Java but not build it, this is why the new error is Could not find tools.jar. if not reinstall JDK (instructions bellow) i.e Make sure JAVA_HOME environment variable is set to the JDK’s folder. This could potentially be fixed by simply updating your Java path in your terminals profile (. Either a path issue or another issue with the JDK install. For whatever reason your computer can't find your installed version of JDK. I had a similar issue with react native but I think installing Java (JRE) is creating a new problem while partly fixing the original. # =/Applications/Android Studio.app/Contents/jre/jdk/Contents/HomeĪlthough likely something I did, still no clue what might've changed from last week, and I'll just need to check/add this for each project. =/Applications/Android Studio.app/Contents/jre/Contents/Home Documents/src/projects//android/gradle.properties] So I just removed the /jdk from the path. =/Applications/Android Studio.app/Contents/jre/jdk/Contents/Homeĭouble checking this solution, I opened Applications, right-clicked on Android Studio.app, selected Show Package Contents, then navigated to /Contents/jre, but there was no jdk. Go to your project, open android folder > gradle.properties file > add the below line There were a few other answers that referenced this fix, but this answer was the clearest.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |