I installed Android Studio IDE. In first run every thing was OK and it ran smoothly, but after closing it and ruining it again, when I click "New Project" Nothing happens. and by nothing I really means nothing, no error, no force close, nothing.
I tried installing JDK and Android Studio and every thing again, but again nothing happened.
please help me!
INSTALLED IN WIN 8.1
Image provided.
Thank you.
Solve that.
Because of Sanction of IRAN, I had to download Android Studio from some Other site, that seems to be corrupted, After Downloading Android Studio From Google, the Problem Was Solved!
:)
Related
I have a problem with Android Studio. It does not show any error(If has) on some classes or show error even if there is not an error but application compiles succesfuly. Also refactoring not working sometimes.
Things I tried:
Removed Android Studio cache.
Invalidate caches and restart.
Installing JDK, Android Studio, SDK again.
Installing operating system again.
None of them solved my problem. Weird thing is code inspection works on some classes but not working on some classes. I have to write without auto import etc. It works like a simple notepad. On the other hand, sometimes I can not copy or remove any text on the program. Are the any solution for this problem?
You won't believe me It happened to me while even using it with MAC and different project.
Android Studio not showing any error.
Refactoring not working
Android Studio logs
Full Log Here:
Full Log
The piece that interests me:
Part of log
Added kotlin support for Android studio, problem solved.
I have a simple to explain yet hard to solve problem. I installed Android Studio today on linux and managed to copy the sdk's I had in Windows so I didnt have to install them again. Everything works perfectly until I try to deploy the app into my cell phone. When I press the run button literally nothing happens. I dont even get an error message and the list of deployable devices does not show up. I have seen other threads that are similar but have NOT worked for me. Every SDK component is up to date. Thanks in advance
It is impossible to use android sdk for windows in Linux .You have to download android sdk for linux from here https://developer.android.com/studio/#downloads
Recently I upgraded my Android Studio to 3.1 and also my gradle to 4.4.
Since then android studio doesn't let me open anything. (Any project , any file location, etc). I am able to create a new project but if try opening an existing one it just freezes. And then I have to kill it through Task Manager.
I am also able to open the settings page through welcome wizard. There also I tried to change the gradle version manually, again while browsing to the location it just gets hanged. Same way as above
I tried upgrading the Java version, installing/uninstalling android studio and everything else I can but its the same.
Any help or suggestions will be appreciated
I encountered similar issue. Please check the system Environment Variable, the JAVA_HOME path should be set correctly according to Java installed in your PC; something like this in my PC "C:\Program Files\Java\jdk1.8.0_172"
This resolved the issue for me.
Cheers!
Herbs
I was working on android studio. In this time I open another java software. After this my studio show below error.
If I open JDK setting and change the jdk location, it change but not save. If I restart studio the default location come again and show the error.
I don't find any help on google and youtube. Please anyone help me.
If you unceck the box "Use embedded JDK (recommended)" it should allow you to set a path to JDK manually. Please post back if there are any other issues.
However, I'd recommend you let Android Studio install its own JDK where it wants it, and then you install a separate one (or even better, make the other programs go look for JRE under the android studio path)...
I was programming in Android Studio, on MAC OS X macOS Sierra.
I was debugging code on one emulator, then I started next emulator with different phone. Then accidentally laptop restarted (with the grey screen https://i.kinja-img.com/gawker-media/image/upload/s--HPvl05ih--/c_scale,f_auto,fl_progressive,q_80,w_800/18mfougmh04injpg.jpg).
After boot everything come back, Android Studio too. But I can't debug my apps. I have
Error:java.lang.NullPointerException (no error message)
This happening everytime I try to run my app.
It is on my company project, from git. I tried different versions of code.
I tried also (with chronology):
reinstall Android Studio
reinstall SDK, Virtual Devices
reinstall Android Studio after completly delete it from Mac, using terminal (How to completely uninstall Android Studio?)
reinstall Java (uninstall with the tip from Java webpage (https://www.java.com/en/download/help/mac_uninstall_java.xml)
I don't know what I can do next besides reinstalling OS.
Thanks
Okay.
After that post I also tried cleaning cache, logs and again reinstall Java JDK. Nothing helped.
Unfortunately the only solution which helped - format and reinstall system.
Try File -> Invalidate caches / Restart... in android studio.
you must remove ".gradle" folder into your root project and restart your android
studio.