我将一个旧的Eclipse项目导入到Android Studio中,并且尽力让它编译,同时仍支持SdkVersion 4 。Android的 - 检索项目的父项时出错:未找到与给定名称相匹配的资源'android:WindowTitleBackground'
的build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion '21.0.0'
defaultConfig {
applicationId "com.name.name"
minSdkVersion 4
targetSdkVersion 21
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:support-v4:21.0.0'
}
错误:
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]
C:\Users\me\WORK\ORIGINAL\original_gradle_made\app\build\intermediates\res\merged\debug\values\values.xml
Error:(206) Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.
Error:(206) Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitleBackground'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
任何人都知道我失踪或需要更改?
** minSdkVersion 4 **不确定是否存在它的2017年,您的目标受众过多,至少达到14或15个//为什么您要使用min作为4?如果看起来像我的框架错误@ _ @ –