简体   繁体   English

错误:条目中的空值:streamOutputFolder = null或错误:条目中的空值:streamOutputFolder = null

[英]Error:null value in entry: streamOutputFolder=null OR Error:null value in entry: streamOutputFolder=null

I am unable to run my app in emulator because of this Error : 由于以下Error我无法在emulator运行我的app emulator

Error:null value in entry: streamOutputFolder=null

or 要么

gradle - Error:null value in entry: incrementalFolder=null

When you are unable to run your app on your emulator or phone 当您无法在模拟器或手机上运行应用程序时

go to the .gradle folder delete it then rebuild your projects then click on run button 转到.gradle文件夹,将其删除,然后重建项目,然后单击“运行”按钮

if that doesnt work delete .gradle folder open the build.gradle file which content something like this 如果不起作用,请删除.gradle文件夹,打开内容为以下内容的build.gradle文件

// Top-level build file where you can add configuration options common to all sub-projects/modules. //顶层构建文件,您可以在其中添加所有子项目/模块共有的配置选项。

buildscript {

repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'


    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

//change the classpath to //将类路径更改为

classpath 'com.android.tools.build:gradle:3.0.0' classpath'com.android.tools.build 'com.android.tools.build:gradle:3.0.0'

but if your classpath initially is 2.3.1 change it to 2.3.0 但是如果您的类路径最初是2.3.1请将其更改为2.3.0

Empty all "build" folders in your project
Copy all your project files and folders
Create a new folder and past it there
Open android Studio and import project
Wait Android Studio to download all dependecies.

And i found another solution here: LINK 我在这里找到了另一个解决方案: LINK

  • Removing the .gradle directory in the root project directory will fix the problem. 在根项目目录中删除.gradle目录将解决此问题。

Hope this helps you. 希望这对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM