没有指定工程目录:显示java.lang.NullPointerException [英] java.lang.NullPointerException: Project directory not specified

查看:384
本文介绍了没有指定工程目录:显示java.lang.NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Studio中建立一个项目(建设AI-130.729444),我不断收到此异常:

When building a project in Android Studio (build AI-130.729444), I keep getting this exception:

显示java.lang.NullPointerException:
  未指定项目目录

java.lang.NullPointerException: Project directory not specified: Project directory not specified

它开始发生从哪儿冒出来,和编辑文件的gradle没有帮助。

It starts happening out of nowhere, and editing the gradle files does not help.

推荐答案

转到构建设置(在邮件的小扳手查看),并取消选中使用外部构建。

Go to the build settings (the little wrench in the Messages view) and uncheck "Use external build".

这篇关于没有指定工程目录:显示java.lang.NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆