could not find uninstall.exe android studio - java

I am new to Android Studio, however I am unable to change the background color of buttons. My guess is tat I'm dealing with a faulty installation.. I tried to uninstall Android Studio, but the uninsall.exe file seams to be missing:
How can I uninstall Android Studio without an uninstaller?

I was facing the same problem. The main problem seems to be that the recent versions of Android Studio don't come with the uninstall.exe in the C:\Program Files\Android\AndroidStudio folder.
Here is what worked for me:
Download an older version of Android Studio. You can do that from the Android Studio downloads archive.
Install it (preferably only the bare minimum as we are going to uninstall it anyway).
Go to the folder where you installed this version of Android Studio - you will find an uninstall.exe here.
Copy the uninstall.exe from that directory to C:\ProgramFiles\Android\AndroidStudio(the original one).
Run the uninstaller and this should solve the problem.

Use the search engine in the file explorer. Enter the name of the program to remove and delete the directories that will appear.
Another way:-
Press Windows key + R
Then copy this string
C:\Program Files\Android\Android Studio\uninstall.exe
Third option is:-
Search in startup menu
%userprofile%
Then delete the a) .android, b) .androidstudio
Then reinstall the android studio again.
I hope it works.

Related

Creating flutter plugin for android and ios gives error in java files android studio

I created a flutter plugin for android and ios using the following command:
flutter create --org com.docscanner.ds --template=plugin --platforms=android,ios -i swift -a java complete_pdf_tools
The operation was carried out smoothly and then I opened android studio and clicked on the option Open and selected the folder created by the above command. The project opened but it shows error everywhere in all the .java files.
And also all the folders and files on the left are in yellow except lib folder.
This is how it looks:
I tried Invalidate Caches and android studio restart and system restart but no good. If I move cursor on top of any red colored word for example on embedding in 3rd line it says Cannot resolve symbol 'embedding' and for actions it suggests Find JAR on web and if I click on that action it says looking for Libraries and then says No libraries found for 'import io.flutter.embedding.engine.plugins.FlutterPlugin;'
The error is in .java files only. Same thing happens if I try to create the plugin from android studio itself by going New Flutter Project>and then it asks me for flutter sdk path, which is C:\src\flutter>now for project type i select plugin and select java for android and swift for ios, give project name, org name and finish
I am using windows 10 x64, flutter version stable 2.10.2, and Android Studio version Bumblebee 2021.1.1 Patch 1
What could be the cause of these errors.
Open example/android/build.gradle instead of android/build.gradle, then you have both app and plugin in your Project.

JDK directory is not set or invalid (unity)?

I am now creating a keystore for my game (in unity) but when I press the add key button, an error pops up
Java Development Kit (JDK) directory is not set or invalid. Please, fix it in Preferences -> External Tools
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
I installed the JDK and checked the path of it in the terminal using the command /usr/libexec/java_home, then it shows me that the path of the JDK is /Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home.
I copy and paste it in the JDK path in unity but the error still pops up.
I actually checked the JavaVirtualMachines in my computer's library but there's nothing in it.
How can I solve this problem? Any help is greatly appreciated.
Actually I solve this problem by adding the modules (Android SDK & NDK Tools, OpenJDK) to my Unity Editor. Actually if you tick the Android build support module, it won't automatically help you to tick the two modules above.
This solved for me in Linux (don't know if the case happens in Windows)
chmod -R 777 ~/Unity
This command set all privileges for all files/directories/subdirectories for the user.
Getting the error of this topic, for curiosity I tried to run the "java" executable inside the directory
~/Unity/Hub/Editor/2021.3.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/
And got:
bash: ./java: Permission Denied
This explains why set the privileges.
I had the same problem, another solution doesn't work for me!!
I just uninstalled and then installed back using the unity HUB and it's worked.
Click on the three dots and uninstall
then click on add to install back the desired module.
While installing don't forget to check android build support and its all subcategories.
Also, I think I had installed more than one version of unity, that could also be a problem.
Check your Unity installation path in my case
C:\Program Files\Unity\Hub\Editor\2019.4.13f1\Editor\Data\PlaybackEngines\AndroidPlayer
this AndroidPlayer folder in NDK, SDK, and OpenJDK these folders are important for APK file generation.
These files are not properly installed then these files copy for another unity version.
enter image description here
Only one version you have then re-download it.
Edit the environment variable like this path in your case path was different but make sour bin folder is important.
C:\Program Files\Unity\Hub\Editor\2019.4.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin
enter image description here
Solve the problem.
I solve the problem by changing the paths inside:
edit->preferences->external tools
To point to the correct version as I download a different version for the SDK, NDK and JDK when using the hub. This can be done by ticking the checkboxes.
As #Jelly Qwerty answered, installing android platform alone won't install jdk, sdk and ndk. What you got to do is:
Open Unity Hub
Go to "Installs"
Click on the 3 dots on the upper right corner of your unity installation and select "Add Modules" Unity Hub Settings 1
Expand "Android Build Support" and check "Android SDK & NDK Tools" and "OpenJDK". Unity Hub Settings 2
Once the tools are installed you should be able to build your apk.
Cheers
I unchecked and checked the box for "JDK installed with untity" in Preferences>Externals Tools.
A window popped up and it installed some files and it fixed my issue
In Unity hub navigate to your unity versions, in the desire version click the doted menu and select add modules, if you already have android support, it has other options to install the android skd, ndk, and open ndk
There is no 3 dots and there is no installing JDK, Gradle, SDK, or NDK.
I always get Gradle building errors when I install these components manually, although they are the compatible ones of my version.
I want to download them automatically by unity, but the options you are talking about don't exist.
enter image description here

Android studio gets hanged at splash screen

I have installed android studio in windows10 as well installed jdk the installation process has gone smoothly but when the android studio opens it just stuck with the splash screen itself.
I have added the environment variable for the jdk but even it didn't works.The versions which i am using are as follows
JDK version is 1.8.0_101 and android studio version is 2.1 and i am using it in windows 10 and the path of the android studio is C:\Program Files.
Even i have ended the task in taskmanger and restarted mypc and opened android studio but it didn't works.Even i have uninstalled android studio and installed it again and run it as admin but even it shows the splash screen only.
You should have a proper Internet Connection while installing Android Studio. The studio needs a lot of file from net after installing. And try Deleting all files related to android from your c drive . Try installing now. Also dont forget Restart your PC after Uninstalling.. & try Updating Java files Too ..
Good Luck ..
Install again on different drive by deleting its loading and configuration files from AppData hidden folder too and also also given path.
path C:\Users\Sohail Zahid\.AndroidStudio2.1

Android Studio no installation wizard

I have downloaded the latest Android Studio and when I run studio64.exe it opens Android Studio as a standalone application, however I would like to install it to my system.
The website says there is an installation wizard however I get taken straight to the Android Studio start screen. Is there still a way to install it on a Windows machine?
Turns out that Android Studio is now portable - like Eclipse. In other words, there is no installing, you just get the zip file, which contains everything you need, such as the executables that run Android Studio. You'll need to store this folder somewhere relevant and create a shortcut to the studio(64).exe file to run it from desktop/start menu.
The SDK is also no longer bundled with Android Studio, so that will need to be downloaded separately.
As of this post the Android Studio installation instructions by Google are out of date.
you can get the sdk manager as stand alone installer.once installed you need to run it as "administrator", than only it will be able to download and install packages and api's. follow the given below link:
http://dl.google.com/android/installer_r23.0.2-windows.exe
Check if its in compatible mode with your OS version of your machine. Right click on the downloaded bundle > Move to properties> Compatibility tab> Select Compatibility tab> Tick the check-box- Run in Compatibility mode> Select your OS version from the drop down.
You will get the set up wizard :)
Worked for me :)

Unable to find Android SDK location for setting preference Eclipse

To start Android Development I installed..
JDK 7
Downloaded and installed Eclipse in E:/ Drive on Windows 7
Then following the steps, installed Android ADT using Eclipse.
Everything fine till now but on trying to set preference its not accepting any folder.
On looking other suggestions online i founded that there is some setup a C:\Program Files\Android\android-sdk but no such folder in my case.
Is my android-sdk in E:/ Drive instead of C:/
I just got a folder (after ADT installation) :
E:\Software\JAVA Tools\eclipse-mobile-juno-SR2-win32-x86_64\eclipse\plugins\com.android.ide.eclipse.adt.package_21.1.0.v201302060044-569685
i can't find any 'tools' folder even (as eclipse preference requires)
Don't know what to do. Please suggest me something
Hello please follow the simple steps to install eclipse and Android SDK there is an ADT-bundle so it consists of all like
1) Eclipse where u no need to install
2) Android SDK ,
3) ADT Plugins
So u simply Click on eclipse it will load automatically all like Android SDK and ADT plugins. So please follow the link to download the adt-bundle.
Note : Before that please install JDK .
My friend, who will install ANDROID SDK? It neither comes with JDK or Eclipse. Please go through these for proper setup link1, link2

Categories

Resources