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:

  1. Open the folder bin under the directory where you installed your Android Studio.
  2. Find the file “idea.properties” and open it with Notepad++/UltraEdit/other_edit_tools.
  3. 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)
  4. 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.
  5. Restart Android Studio.

Example:

Error on Android Studio: Cannot load project: java.lang.NullPointerExecption

The article was published on October 21, 2016 @ 11:17 PM

Leave a Comment