NullPointerExecption error on android studio is one of the most common error. 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 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 edit as listed in step 2.
  5. Restart Android Studio.

Example:

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

Leave a Comment