error launching studio when run an apk on android studio - android-studio

i'm quite new to the android world and have recently encountered an issue. While trying to launch an apk i found online, i stumble across an error message i do not fully understand. it mentions that i'm running a 32 bit executable. I have already checked that the JDK installed is 64 bit and that i have studio 64 installed and not studio. Also, i'm pretty sure i have set the environment variables correctly. So if any of you guys could answer my query, it'd be great thank you !

Probably your Android Studio is not x86_64? Try to download and install the 64 bit (android-studio-ide-173.4819257-windows.exe) from https://developer.android.com/studio/#downloads , instead of 32-bit version.

Related

Newest Android Studio 2021.3.1.17 release gets stuck on launch screen

I've installed the newest version of Android Studio with the installer on my Windows 10, currently it's version 2021.3.1.17 Dolphin.
Upon launching it, the splash screen appears and the little bar loads to the end and then it gets stuck indefinitely on that screen. All I'm seeing is this:
I've tried the following stuff already:
Completely uninstalling Android Studio, making sure all the files have been removed correctly before re-installing it (except the JetBrains folder, since I have other JetBrains stuff in it)
Re-Downloading the installer from the official Android Studio Website to make sure it was not corrupted.
Run as Administrator.
Was previously installed on a non-primary drive D:/, and I've also tried installing it on my primary drive C:/ just in case, same issue with C:/ installation too.
Ran studio.bat to see any errors, however, I'm assuming that bat file itself is buggy. It tells me that it does not find any JRE or JDK installation within the path. So to fix it I've set the newest Oracle JDK19 as my JAVA_HOME and the /bin accordingly, however, the studio.bat will then continue a long java error which seems honestly unfixable, so I won't even bother posting it here. Me setting the path shouldn't even be necessary, as Android Studio comes bundled with a JDK... and it should be using that one anyway.
So I'm out of things to try. I cannot make it work. My only lead was the Java error, but according to some Google search, I shouldn't even have to deal with it as it comes bundled with Android Studio. Looking into the files, there is indeed a jre folder within the Android Studio installation. Is it not using that one? What could be the reason that it is not using it if that is the case?
So, I was able to fix it myself after trying a few hours more. I've had also other Java installations (Java JDK 8, JDK 19) that interfered somehow with Android Studio. I've uninstalled everything related to Android Studio and I've uninstalled every Java version I had.
Additionally, I've removed every reference to Java or Android Studio from all of my system and environment variables. Also removed a path to Android SDK that was within my system variables.
After rebooting and installing Android Studio, it worked. Haven't installed any Java version so far, so not sure if the issues will return if I install my Java versions again.

OpenJDK platform binary resources problem

Any help with OpenJDK platform binary resources problem
I tried to reinstall android studio and my windows
tried to open new project and I faced the same problem I don't know why
I had the same problem and it was about flutter, update It or uninstall it

Tizen Studio 3.3: Device Manager and Emulator Manager fail to launch due to "The code execution cannot proceed because MSVCP120.dll was not found."

I have recently installed Tizen Studio 3.3 (web-ide_Tizen_Studio_3.3_windows-64.exe) and also install all necessary packages through Package Manager. After the process of installation had finished, I tried to launch Device Manager and Emulator Manager, but failed because of the system Error: "The code execution cannot proceed because MSVCP120.dll was not found. Reinstalling the program may fix this problem".
However, this file exists in the folder C:\Windows\system32 and all versions of Microsoft Visual C++ Redistributable Versions are installed.
Please, help me to overcome this issue. Thank you in advance.
Overall, I have found out how to deal with this problem.
First of all, I had to totally reinstall Microsoft Visual C++ 2013 Redistributable. Thanks 'magicandre1981' for this kind of hint. It helps me to get rid of this kind of error:
https://sun9-65.userapi.com/c854124/v854124694/1151cf/ZnvZokiCCoM.jpg
As for unsuccessful launching of Device Manager, where nothing happens after it has been clicked, I overcome this problem by changing the path from 'C:\Program Files\Java\openjdk-13_windows-x64_bin\jdk-13\bin' to 'C:\Program Files\Java\jdk1.8.0_221\bin' in Environment Variables.
You need to install Visual C++ Redistributable Packages for Visual Studio 2013 (x86)
https://www.microsoft.com/en-us/download/details.aspx?id=40784
Reinstall the vcredist_x86.exe even if you have 64-bit system. This solution also fix Tizen Studio 4.6 Device Manager.
The solution is to update Visual C++ Redistributable Packages for
Visual Studio. You can do it by the link
"microsoft.com/en-GB/download/details.aspx?id=40784". Recomendation:
install vcredist_x86.exe even if you have 64-bit system. This will fix
the problem.
Moreover, check if you have no spaces in folder name, where you are
installing SDK. The installation can be complited successfully, but
you will catch errors like "can't resolve path", because of spaces.
Thats confusing.
Reference: https://developer.tizen.org/forums/sdk-ide/missing-msvcr120.dll-v3.1-emulator
According to my experience, device manager and emulator manager was not working on open jdk11, 12, 13.
I have tried for several days and contacted with samsung developer support.
They asked me to install oracle jdk8, I did.
Now it is working well.
Hope it help to somebody who having such an issue.

Android Studio won't create a class

Why won't Android Studio create a class?
It doesn't even work for newly created projects
Update
OR why are all of these empty?
The reason is you may have installed the 64 bit version on a 32 bit machine. I had the same problem. If you have 32-bit OS, try to uninstall 64-bit version of Android Studio and install 32-bit version from this page: https://developer.android.com/studio/index.html#downloads
I too faced the same Issue. Go to your Android Studio -> Help -> Edit Custom VM options. Add the following line to the opened file.
-Djdk.util.zip.ensureTrailingSlash=false
Source : Fix suggested by Wojciech Fred
To me, the problem was due to incorrect upgrade to new version of Android Studio. Studio patching seemingly went ok, but at Event Log, I constantly got this error:
2:55 PM FileNotFoundException: Entry fileTemplates//code/Google Test Fixture SetUp Method.cc.ft not found in /home/vlada/android-studio-145.3200535/lib/idea.jar
I also got similar message in 'IDE Fatal Errors' window.
Downloading and installing the latest version of Studio solved the problem for me.

Android Studio freezes at loading screen and won't start.(Windows 10)

I just got a new laptop today and I am trying to get Android Studio working.
There was no problem installing it and I've got the latest JDK. I also
added the JAVA_HOME variabel to environment variables.
Problem: When starting android studio the loading bar is filled up and then nothing happens and I don't get passed the loading screen. Does anyone recognize this problem and know how to solve it?
Thanks!
I had the exact same problem, I uninstalled all versions of JDK and JRE that were installed on my computer and then installed the most recent 64 bit version. After that reinstalled Android Studio and now it is working great.

Resources