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.
Related
I've installed Android Studio on Arch linux with the android-studio AUR package, but when I run android-studio I get this:
It's just an empty window with a gray portion. How can I get it to open the wizard properly?
Some Linux distributions doesn’t work well with some programs. Check parameters of your system for opening apps. But you can simply uninstall it and try it again. If the problem was not cleared try downloading another version of android studio. Check apps properties file if it’s not corrupted. If not helped ask Android studio devs. Or try updating you’re Linux.
I had this issue with my wm bspwm, when I changed the session for a desktop environment like kde, it works.
I had minor problems in a project I was working on and use invalidate caches and clean to see if that would help. However that did something not just to that one project but to android studio in general. it does not recognize java, the appearance of even the home screen has changed. I can't start any new projects in java and none of the old work. Strangely, even after I uninstalled both studio and java and then reinstalled the same problem persists.
incompatibility between the Android Studio cache and your current project layout. If you suspect this is the problem, then select File> Cache / Restart> Validate and Restart from the Android Studio toolbar.
To set JDK location: you can see this video: https://www.youtube.com/watch?v=jA97GYqRODE
Try to clear Android Studio cache, assuming you're using v3.3, delete the cache folder located at:
C:\Users\your_username\.AndroidStudio3.3\system\caches
Recently, when I start eclipse program, always got below error. I did not see this issue before, seems the error started after I update the Android SDK. Could you please help?
I got some answers from here. They recommend me to uninstall some images from android sdk 5.1.1. I didn't install these images and even I cannot find them under 5.1.1 version as below.
delete this guy
the solution to above problem is to just delete(uninstall) the package Android Wear ARM EABI v7a system image available under Android 5.1.1 (API 22) if it's installed. (No need to uninstall whole 5.1.1 package). May be there is some eclipse bug with this package.
Finally restart eclipse to see your changes.
If the problem still exists, try removing other Android Wear package also (i.e Android Wear Intel x86 Atom System Image)
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
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