【发布时间】:2018-08-15 11:20:27
【问题描述】:
我正在使用 Fire 基础数据库开发 Android 应用程序。所有数据都完美地存储在 Fire 基地上。 当我进行一些更改并通过强制关闭 android Studio 来关闭应用程序时,问题就出现了。
现在,当我打开 Android 构建项目时,它给出 流输出文件夹错误为 Null。 我已经在 Stack Overflow 上搜索并找到了与我的错误相似度的答案,但我并不完全理解答案。 Answer Searched
这是我的 App Gradle 代码
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.usmanali.medicineinvent"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
App Gradle 中的依赖项
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.google.firebase:firebase-auth:11.0.4'
implementation 'com.google.firebase:firebase-database:11.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
这里是构建。摇篮文件
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
classpath 'com.google.gms:google-services:3.1.0'
}
【问题讨论】:
-
您是否无效并重新启动然后再次构建项目?
标签: java android android-studio gradle null