Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Null pointer exception creating a new project Android Studio (virtualToIoFile)

I am using android studio 2.2, its showing null pointer exception when to create new project by clicking "file>> new >> new project>>"

EDIT: Everything works fine untill i click on "Finish" button in the end of creating new project.

and i also updated android studio and sdk to latest version that also didn't work.. also tried to disable plugins but it wont work, need help!!!

enter image description here

null
java.lang.NullPointerException
at com.intellij.openapi.vfs.VfsUtilCore.virtualToIoFile(VfsUtilCore.java:371)
at com.android.tools.idea.templates.recipe.RenderingContext$Builder.<init>(RenderingContext.java:300)
at com.android.tools.idea.templates.recipe.RenderingContext$Builder.newContext(RenderingContext.java:313)
**at com.android.tools.idea.npw.deprecated.ConfigureAndroidProjectPath.performFinishingOperation(ConfigureAndroidProjectPath.java:170)
at com.android.tools.idea.npw.deprecated.ConfigureAndroidProjectPath.canPerformFinishingActions(ConfigureAndroidProjectPath.java:141)**
at com.android.tools.idea.wizard.dynamic.DynamicWizard.doFinish(DynamicWizard.java:649)
at com.android.tools.idea.npw.NewProjectWizardDynamic.doFinish(NewProjectWizardDynamic.java:275)
at com.android.tools.idea.wizard.dynamic.DynamicWizard$1.run(DynamicWizard.java:422)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:227)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:357)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
 at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressMa    nager.java:127)
at     com.intellij.openapi.application.impl.ApplicationImpl$13$1.run(ApplicationImpl.java:633)
    at   com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java  :369)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
like image 712
Sandeep Singh Avatar asked Mar 10 '23 23:03

Sandeep Singh


1 Answers

After researching, i change the old projects path to somewhere else and it worked. was a little problem but annoyed me a lot.

like image 200
Sandeep Singh Avatar answered Apr 27 '23 17:04

Sandeep Singh