Android Studio won't start new project, help! (gets transparent) - java

when i install it and try open for the first time, it works perfectly, but when i tried after, and click in "Start a new Android Studio project", the window opens, but gets transparent for ever(see in the image). it gives no error alerts, files missing, nothing.
after that, i tried to:
update all tools and SDKs, not works.
run it as ADM, not works.
run this with nothing more running to have more power of the pc, not works.
add the "JAVA_HOME" system variable with the JDKs and JREs locations, not works.
install individual SDK tools, not works.
uninstall and reinstall all JREs, JDKs and Android Studio, not works.
Change JREs and JDKs versions to older ones, not works.
search for the Minimal System Requirements to run it (that you can see here: http://developer.android.com/sdk/index.html)
and my pc supports i guess (that have 4gb RAM, 150gb of free space on the install location, AMD Sempron 145 2.8ghz processor, Win 7 32-bit, 1280x1024px screen resolution and all JREs, JDKs and SDKs needed).
yesterday i tried to change the installation location to another HD, not works too
and in my last try, i undo my pc with a System Restore to 4 days before the first installation, nothing of this works
anyone knows what i can do to solve this? if not, exist another program that i can use instead of the Android Studio? i'm a newbie in android development, i relly relly need some help pls :(
sorry my bad english and the big post, i'm just trying to be more specific as possible.
Thanks in advance, have a good day.

go to your user directory.
Example : C:\Users\yourName.
delete the directory..
.AndroidStudioX.X
if you have few of them delete all of them.
this should reset Android Studio as a fresh install
helped me a lot of times.

Related

android.bat not opening Android SDK manager

Yes, this question has been asked before. But the solutions on the internet are not working so that's why I am asking it here. I'm guessing the solutions aren't working because I am using newer versions but I'm not sure.
Bit of Background: So I am making a small game in Unity. I have to test it on Android so I can check if there are any problems or not. So I check around the internet on how I may be able to do that. Turns out, I need to change the build settings to android and I also need JDK installed on my computer along with Android SDK Manager so I download them both. I did not install the Android Studio but just the Command Line Tools because many tutorials say that I do not actually need the whole Android Studio because I'm gonna be making the app in Unity not in Android Studio. So I do that. I install JDK and Extract the command line tools.
I think the JDK installed fine because after installing JDK, I opened Internet Explorer (No, I don't use IE, I use Chrome but I opened it just for fun). And a little notification showed up at the bottom which basically said that I could now run Java on the browser so that's why I don't think there are any problems with the JDK installation.
Problem: I extracted Command Line tools of Android Studio and found that there was only a tools/ folder in it. I opened it and clicked on android.bat but the Android SDK manager doesn't work. A CMD screen just flashes for a moment but then nothing happens.
Solution I have Tried:
Change set java_exe to:
set java_exe="C:\Program Files\Java\jre7\bin\java.exe"
and delete the line:
call libjava_find.bat
But I can't find set java_exe code anywhere in the file. The file doesn't have it. How am I supposed to change it?
Alright, so I figured it out but I was still unable to pinpoint the problem. Here is what I did:
Installed a fresh copy of Windows 10. Note: It is highly unlikely that this will solve the problem. But where I live, it is very common to just install a fresh copy of windows whenever you get a problem. I really don't think you need to do this.
Follow all the instructions from: https://www.youtube.com/watch?v=yLFBu-VlBIw
If you get the following error:
Error building Player: CommandInvokationFailure: Unable to list target platforms. Then use this fix: not finding android sdk (Unity)
These steps solved the problem for me and I was able to run it properly.

Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2

Android Studio 2.2.3;
Java 8;
Ubuntu 14.10;
laptop: Asus K72F.
I spent no less than twenty hours on a Udacity course, learning the basics of XML as part of an Android course.
I installed Java on my Ubuntu machine, then Android Studio IDE.
Followed instructions on the course's videos and pages.
Tried saving my first project, but never made it to the first step...
Error:Process 'command '/usr/local/android-studio/jre/bin/java'' finished with non-zero exit value 2
I've found no intelligible instructions on the web.
I've been using Ubuntu, Linux, Mac OS X and Unix for ten years now, and I've solved one or two hundred problems with and without the command line, most often copying and pasting from Stack Overflow pages.
I've explored menus on Android Studio, I've opened lib folders. Some posts suggested changing libraries but failed to mention which ones and how.
Another post suggested changing "overrides" but, without a sealed project, Code > Override Methods stays grey and I can't act on it ... Another vicious circle.
One post suggested downgrading to Java 7. I thought the IDE setup for the Linux community might be slightly old, so I uninstalled Java 8 and got Java 7. Got rid of the IDE folder and reinstalled Android Studio, but this time I put it in /usr/local to play it safer. No, Java 7 wasn't supported so I had to upgrade and go back to Java 8.
I've been stuck for three weeks now. Yesterday I tried installing the latest version of this IDE on Windows but there's a bug and it crashes before opening.
I would appreciate it if you could state instructions taking nothing for granted, I am an absolute beginner with Android and gradle and the jargon is overwhelmingly different from Unix.
This reminds of the time when everybody suggested opening a Terminal window but nobody said how.
Please tell me which menus I have to go to, what lines to change, or which libraries to change and where to fetch them.
Thank you for your time and trouble!
I had the same problem, but when I entered good java path, I had a different problem, searched the solution for 3 days, and finally, this video gave me the answer...
Good luck!!
https://www.youtube.com/watch?v=zhj3MY4SpHY
EDITED:
So, the process looks like this.
1) after you download android studio and extract it to either /usr/local/ or /opt/, run it. When it gradles, you'll see an error "process 'command' /usr/loca/android-studio/jre/bin/java finished with non-zero exit value 2"
2) go to File->Project Structure->SDK Location an in there uncheck "Use embedded JDK". in the input field below that checkbox, paste or choose tha path of your JDK (mine was /usr/lib/jvm/java-8-jdk).
3) Click OK, let gradle to do it's work, and when it's finished, you'll get 2 more errors (which I'm not gonna paste here) with lagre log (if you look at the log, on the beginning you should see something about unclosed quotes in aapt file in your /build-tools/25.0.0/aapt).
4) !!!! I did this step to make sure that I have the same error like in the video, so it is optional !!!!
I did a rebuild or clean. in the menu go to Build->Rebuild and start it. Your gradle should run forever so you can wait for a few minutes and if it's not finished, shut android studio down and proceed to the step 5.
If your gradle finishes, it's probablly not the error I'm tryng to expain.
5) When this is all done, opet the folder where your android apps are stored (for me the path is /home/matej/AndroidStudioProjects/MyApp/app), open your app (App name)->app->build.gradle
6) change the line "buildToolsVersion '25.0.2'" to
"buildToolsVersion '23.0.1'", save it and close
7) run the android studio again and you'll see the message where it links you to the installation of the missing build tools. click on it, install it and clean your project
8) ENJOY IN DEVELOPING :)
In my case, I had firebase database gradle versin lower than the latest one. Changing it to latest solved the issue.

SDK manager and AVD manager not running

I work with Windows 10 and Android Studio.
When I press the button "SDK manager", nothing happens.
When I open the "AVD Manager", window that opens is the "Create AVD", but when I set a new AVD, well, nothing happens.
Of course, I defined JAVA_PATH, SDK location and everything else (including sdk\tools\android.bat - java.exe).
Android studio and SDK installed in D drive, JDK and JRE installed in C drive.
Is there anything else I can do? Is there a way to spend an error report?
Some time ago I do have kind of problem like this.
You can try running sdk manager with Run as administrator from your drive where it is located at.
let me know if it helps you if not please let us know the best solution you get from others friend . :)
Ok. I think the problem in the build of Windows 10. There are many programs that do not work, and there are also a lot of feedback on it.

Emulator not showing the updated output after making the changes in the code

Yesterday i updated eclipse and sdk, and now have made some changes to the code but not able to see the changes made in emulator when i run it.
These are the things i have tried by googling:
restarted eclipse and avd
clean the project
checked whether all the options are checked under project
properties->builders.
Checked whether all the options are checked under
windows->preferences->android->build
When I tried to test it on device, I was not able to export, but got "No Build Tools installed in the sdk".
So I installed the tools in the sdk, but I still could not get updated output.
Can anyone help me out?
Are you sure the latest apk is getting installed on the device? There are some instances where it will not overwrite an installed apk. For example if your build-signing key has changed recently. Try uninstalling the app fully from the device first, and try again.
Go to device manager edit device virtually created by you or system ..you will find one check box saying enable snaps shot. check mark it. it will work..

I can't locate the Android SDK on my computer

I installed the Android SDK on my computer a few months ago and now I've finally motivated myself to begin developing.
At the moment, I'm trying to install the plugin for Eclipse, and I need to set the location of the SDK on my computer but... I can't find it.
I know it's installed, since the SDK Manager says it is, but I don't know where!
There's no Android folder in Program Files or in C:\
Searching for Android in explorer didn't yield anything relevant.
So.. Does anybody know where I can find the SDK?
It doesn't seem to be in the default location.
Thanks
If what you say about the SDK Manager in the OP is correct, and if you have access to the SDK Manager, then it shows where the SDK is currently located.
Right below the Package and Tools menu, it shows the SDK path.
However, if you cannot access the SDK Manager, then odds are you downloaded either the ADT Bundle or the SDK Installer.
If it is the earlier, then the file that you downloaded is named: adt-bundle-windows-x86.zip. If it is the later, and if you remember installing it, then the default path for the installation is in your Program Files\Android..... The installer is named something like this: installer_r21.1-windows.exe (this is the current available version)
If none of the suggestions on this page, helps, then the last resort is to download the SDK all over again. On a good connection, you should be done in about 15 odd minutes.
Download Source
Good luck with coding. ;-)

Categories