不太清楚为什么我不断收到此错误: errors
经过一番搜索,问题似乎出在我的 build.gradle 文件中,但我找不到它。我已附上该文件,但还附上了我的错误的屏幕截图,以防我遗漏了某些内容。 但这并没有改变任何事情。
Build.gradle 文件如下:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "28.0.0"
defaultConfig {
applicationId "com.cormac.splashscreen"
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
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'
}
最佳答案
引用这个网站
https://github.com/thevarungupta1/Android-Training-2/blob/master/SplashScreen/app/build.gradle
和
你好像忘了
implementation 'com.android.support:support-v4:28.0.0-alpha3'
关于java - :app:processDebugResources Error in Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51212903/