0
私はAndroidアプリをEclipseからAndroid Studioに転送しています。eclipseからAndroid Studioへの転送エラー
ただし、次のエラーが発生しています。
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(18) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':myproject:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/myPath/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
私のbuild.gradleは次のとおりです。
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.myproject"
minSdkVersion 14
targetSdkVersion 21
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':facebookSDK')
compile 'com.android.support:support-v4:21.0.3'
compile 'joda-time:joda-time:2.1'
compile 'com.google.android.gms:play-services:+'
compile files('libs/adstirwebview.jar')
compile files('libs/google-play-services.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/twitter4j-core-4.0.2.jar')
}
上記のエラーの原因は次のとおりです。
compile 'com.android.support:support-v4:21.0.3'
compile 'com.google.android.gms:play-services:+'
しかし、私は何をすべきか分かりません。この問題の解決方法を教えてください。
は、ご返信いただきありがとうございます。私はAPI23で使用できないApache HTTP Clientを使用しているので、compileSdkVersionを21に設定したいと思います。 – supermonkey
@supermonkeyこの場合、次のように使用できます:https://developer.android.com/about/versions/ marshmallow/android-6.0-changes.html#behavior-apache-http-clientか、okHttpライブラリを使用できます。それ以外の場合は、Google Playサービスのバージョン7.8.0を使用してください。ただし、古いライブラリをApacheの問題を回避するために使用することはお勧めできません。 –
お返事ありがとうございます。わかりました。 compileSdkVersionを23に設定すると、 "compile 'com.android.support:support-v4:21.0.3'"がエラーになります。私はそれを何に置き換えるべきですか? – supermonkey