I have updated android studio to Electric Eel and I got the following error message. What should I do ?
Error launching Studio
Failed to load JVM DLL C:\Program Files\Android Android
Studio\jbr\bin\server\jvm.dll
If you already have a JDK installed, define a JAVA_HOME variable in Computer > System Properties > System Settings > Environment Variables.
error message
I have tried changing the environment variables into different path but nothing worked.
I have faced same issue after updating android studio version electric eel. it's show error like this.
After many try I found this solution. you can follow this steps.
Step 1 : You can visit this site Official Oracle Java SE Development Kit Site and download particular JDK kit for your pc configuration. I am suggest to download this JDK version Java SE Development Kit 18.0.2.1 and after download you can install in your computer.
Step 2 : After Successfully installed you can go
Stat--> Search--> Edit Environment Variable -->
You can follow this image
1.
Step 3:
Now You can Add JAVA_HOME: C:\Program Files\Java\jdk-18.0.2.1 (install version in your pc) Like this
and also add PATH : C:\Program Files\Java\jdk-18.0.2.1\bin (install version in your pc) Like this
Note : You can only add user variable not system variable.
Step 4 : Last step but main after follow these steps you can restart your pc.
Related
=)
"tns doctor", "tns run" or "tns run android" tells me it has issues with
"WARNING: adb from the Android SDK is not installed or is not
configured properly.", "WARNING: adb from the Android SDK is not
installed or is not configured properly.", "Cannot find a compatible
Android SDK for compilation. To be able to build for Android, install
Android SDK 28 or later.", "You need to have the Android SDK
Build-tools installed on your system. You can install any version in
the following range: '>=23 <=28'."
Here is my configuration :
Windows 10 - Pro 64-Bit,
System Environment Variables:
Variable: "ANDROID_HOME" --> Value: "C:\Android\android-sdk"
Variable: "Path" --> Values "C:\Android\android-sdk\tools; C:\Android\android-sdk\platform-tools; C:\Android\android-sdk\tools\bin; C:\adbDevices\adb-tools;"
At my very first try to install nativescript Android Studio was already installed, so i deinstalled Android Studio and let it install via choco.
I followed exactly the instructions of https://docs.nativescript.org/start/ns-setup-win. If I start via CMD "tns run" or "tns doctor" I get the errors mentioned above.
Everything else like java-jdk or chocolatey and so on is installed and set in the environment variables...
enter image description hereenter image description here
Any help is appreciated... Of course I searched for these warning/errors in the internet but all related posts are from 2017 and they do not provide a solution.
Ok thank you very much #Vladimirov the issue was my User Enviornment Variable had the path to the adb instead of the path to the sdk... So I changed my User Environment Variable like my System Environment Variable to the path to my SDK and it is working fine now. :))))))
<3
Thank you very much Vladimirov!
I am unable to run ionic run android. After I checked with cordova requirements, it shows
Android target: Not installed
Android SDK not found.
How should I solve the problem? I have my SDK in D drive where I have set ANDROID_HOME and path correctly, I suppose
Also, I do android list target, it shown as below. How should I intsall it if it is needed to fix teh error?
Attached the cordova android version
You can follow this link set ANDROID_HOME which I got help from or follow below guide.
I had similar trouble but managed to fix it. After successful installation of android studio, Android SDK will be downloaded by default to a directory like this "C:\Users\abc\AppData\Local\Android\sdk1" where "abc" in this case is your PC name. AppData is a hidden folder.
Next step is to set ANDROID SDK path. From Advanced System Settings, click Environment Variables then under User variables add New as shown below.
Next, add android 'tools' and 'platform-tools' to System variables' 'Path' as shown below. These tools are inside sdk folder.
Set up is done. Open cmd and issue android command. If all is well, you should see below output.
Finally open a new terminal window and navigate to your cordova project directory, in my case "hello" and check platfrom requirements. All should be fine now.
I had a similar problem. The issue was I was using the latest version of Java which was 10.0.1
You can check yourself by typing in terminal:
java --version
And it was
java 10.0.1 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)
Currently, Cordova needs on their documentation page as JDK 8. SEE DOC HERE
You can download JDK 8 from the official website here
Once you download you need to set up JAVA_HOME variable. Use this for setting up JAVA HOME when you have multiple version of JAVA installed.
Then you can run
cordova requirements
or
cordova build android
This worked for me. Hope it helps someone.
There is a cordova project developed using Visual Studio - Tools for Apache Cordova (TACo).
While building the project for iOS target, we are able to get the build and debug successfully, on simulator as well on real iOS device.
But while building the same for Android target, it is working with Ripple browser emulators but it is not working with Android emulator or Android real devices.
I have tried updating environment variables manually as well through VS > Tools > Options > Tools for Apache Cordova > Environment Variables Overrides option, which includes
ADT_HOME /* This is basically android path */
ANT_HOME
GIT_HOME
JAVA_HOME
I have also verified ANDROID_PATH environment variable value in System Variables, and checked in command prompt using "echo %ANDROID_HOME%", it prints: C:\Program Files (x86)\Android\android-sdk;
VS > Tools > Options > Tools for Apache Cordova > Environment Variables Overrides
Require guidance where should the change is required.
Here is the Build error log:
MSBUILD : cordova-build error : Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. (TaskId:10)
Done executing task "MdaVsCli" -- FAILED. (TaskId:10)
Done building target "BuildMDA" in project “MyProjectName.jsproj" -- FAILED.: (TargetId:11)
Project Performance Summary:
4704 ms C:\MyProjectDir\MyProjectName.jsproj 1 calls
4704 ms build 1 calls
The issue was related to Environment Variable only. I used to add semicolon at the end of all the file locations, but for JAVA_HOME, if we add semicolon it is not working with VS TACo.
Hence, i removed the semicolon from the end, and now the JAVA_HOME looks like this:
JAVA_HOME = C:\Program Files (x86)\Java\jdk1.8.0_60
App is now working with Android simulator as well.
The recent Android SDK tools removed the android command.
This issue is resolved recently in Cordova. Check out this link for more info on this
You can also downgrade your tools to a version where the android was still available.
Hope it helps
I used Visual Studio 2015 to develop mobile app with Cordova. Before I upgraded to Windows10, I was using Windows 7 and it worked perfectly fine. After I've upgraded to Windows10, whenever I open a Cordova project or create a Cordova project the Visual Studio hangs (not responding).
I have tried to reinstall the Visual Studio but it still hangs.
Anyone has faced this problem before?
Thanks
Here is the solution for this problem in VS 2015. This issue if you have Windows 10 and latest updates in VS 2015 including latest type script installation.
1) Open command prompt as administrator.
2) Navigate to the following folder path:
cd "C:\ProgramData\Package Cache"
3) write the following command to find out vs_edition.exe file:
dir vs*exe /s /b
4) copy the full path that contains your vs edition exe from the screen.
5) write the following command:
"C:\ProgramData\Package Cache\{GUID}\vs_enterprise.exe" /modify /installselectableitems Javascript
6) VS installer will start, click on modify and then update. no need to change any features selection.
7) Wait until the installer finishes.
8) From the command prompt, navigate to the following folder:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
9) Run the following commands:
devenv /updateconfiguration
devenv /clearcache
Below screenshot shows the full commands set.
Now, you will be able to open VS 2015 and create cordova apps.
This is a known issue, and the solution is mentioned in the following link.
I still had few more issues with the Blank Cordova Project which would simply not build once the hanging issue was fixed. I'll share my experience here to help others.
After recovering from the VS.Net2015 hanging I was still getting
"Error MSB3073 The command "platforms\android\cordova\clean.bat" exited with code 1. BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 354"
I tried reinstalling the Android Studio again and found that it was not working, and the issue was: I had installed a 32 bit Java SDK on 64Bit OS. After In installed the 64Bit JDK and correcting the Path variable to point to this directory, I was able to start the Android Studio.
Now my Blank Cordova project was still not compiling with an error
'MySQL' is not recognized as an internal or external command, BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 287
This was an interesting one, looks like its an issue with MySQL, in the PATH variable there were some & within the path. I used "" to surround those path
Now its compiling and also able to start the Ripple.
Hope it helps someone as it took me more than 2 weeks to fix.
Regards
Kiran
Today , solved for me with Visual Studio Tools for Apache Cordova Update 2 for VS2015 Enterprise & Windows 8.1. ;-)
I think there are some updates for Visual Studio 2015. I reinstalled it and it is working now.
Here is what I did:
Uninstall the Visual Studio 2015 using the installer (vs-community.exe) from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Install Visual Studio 2015 using the same installer(vs-community.exe) and choose Typical Installation
After the installation is done, run the installer (vs-community.exe) again and choose Custom Installation and choose to install Apache Cordova
Then I am able to open and build Cordova project
Not sure if this helps.
In my case with VS2015, the problem was about missing SDK build tools for Android. The lack of information is due to the fact that Visual Studio does not show all the build information by default. Once more information is shown, we could see issues with third party dependency issues like Android build tool. There are a couple of ways to get more information during a build.
MSBuild build output verbosity
Dependency checker on the Cordova tools
Both of these are available from the tools menu. For more information see this post:
http://www.ozkary.com/2016/01/visual-studio-2015-apache-cordova.html
hope it helps.
I've a problem with Android Studio.
When i try to open Android Studio it shows this message:
But I've setted the JAVA_HOME variables (Java SKD is installed):
What is the problem?
Have you installed the 64bit JDK? You can install the 64bit JDK as follows:
Windows
Launch the downloaded EXE file, android-studio-bundle-.exe
Follow the setup wizard to install Android Studio.
Known issue
On some Windows systems, the launcher script does not find where Java is installed. If you encounter this problem, you need to set an environment variable indicating the correct location.
Select Start menu > Computer > System Properties > Advanced System Properties.
Open Advanced tab > Environment Variables
Add a new system variable JAVA_HOME that points to your JDK folder, for
example C:\Program Files\Java\jdk1.7.0_21.
I solved it by installing Microsoft Visual C++ 2010 Redistributable Package.