NullPointerExecption error on android studio is one of the most common errors. In this post, we discuss the best way to solve/fix java.lang.NullPointerExecption error on android studio. Just follow the below steps:
- Open the folder bin under the directory where you installed your Android Studio.
- Find the file “idea.properties” and open it with Notepad++/UltraEdit/other_edit_tools.
- Add “disable.android.first.run=true” as the final line and save the file. (If you see any error while editing with Notepad ++ say in step)
- Follow steps (a) and (b) like below “Check if the file is open in another program”
(a) open Notepad++ as administrator by doing a right click on Notepad++ shortcut and choose run as admin or ctrl+shift and click notepad++ shortcut
(b) Save the file after editing as listed in step 2. - Restart Android Studio.
Example:
1 2 3 4 5 |
#---------------------------------- disable.android.first.run=true #---------------------------------- |
Error on Android Studio: Cannot load project: java.lang.NullPointerExecption
The article was published on October 21, 2016 @ 11:17 PM
Leave a Comment