1
私はMarshmallowに移行している既存のアンドロイドアプリを持っています。私がbuild.gradleと依存関係によってappcompat-v7に変更されたとき、私は奇妙な問題を認識し始めました。 AppCompatActivityを拡張する私のアクティビティクラスはエラーを表示しています。 はv7のAppCompatActivityを解決できません:23. +
この
は私がこのコードpublic abstract class BaseController extends AppCompatActivity{
....
}
を使用しています私のbuild.gradle
活動でapply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
debug{
buildConfigField "String", "ANDROIDPAY_PUBLIC", "\"""
buildConfigField "String", "ANDROIDPAY_PRIVATE", """
}
release {
buildConfigField "String", "ANDROIDPAY_PUBLIC", " "String", "ANDROIDPAY_PRIVATE", "\"""
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
publishNonDefault true //for maintaining product flavor
productFlavors {
{
}
{
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile 'com.google.android.gms:play-services-analytics:8.4.0'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
compile 'com.google.android.gms:play-services-wallet:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.google.android.gms:play-services-plus:8.4.0'
compile 'com.google.android.gms:play-services-identity:8.4.0'
compile 'com.google.android.gms:play-services-appstate:8.4.0'
compile 'com.google.android.gms:play-services-base:8.4.0'
compile 'com.google.guava:guava:18.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.facebook.android:facebook-android-sdk:4.0.0'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile files('libs/GoogleConversionTrackingSdk-2.2.2.jar')
compile files('libs/AF-Android-SDK-v3.3.0.jar')
compile files('libs/crittercism_v5_3_3_sdkonly.jar')
compile files('libs/Kahuna.jar')
compile('com.optimizely:optimizely:[email protected]') {
transitive = true
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
}
compile 'io.card:android-sdk:5.3.0'
compile 'io.jsonwebtoken:jjwt:0.6.0'
compile "com.squareup.okhttp3:okhttp:3.0.1"
compile files('libs/commons-codec-1.10.jar')
compile files('libs/bcprov-jdk15on-154.jar')
/*compile 'com.paypal.sdk:paypal-android-sdk:2.13.3'*/
compile 'net.hockeyapp.android:HockeySDK:4.1.0-beta.1'
compile files('libs/devicecollector-sdk-2.6.jar')
}
である私が取得していますエラーは、symbol AppCompatActivity "
すべてを解決することはできませんです 'com.android.support:appcompat-v7:22.4.0'をコンパイルするときに問題なく動作しています。 23. +バージョンを使用しているときに問題が発生します。
sdkを更新しましたか? –
あなたはsdk api 23 .....を更新し、さらにgradleを追加します。このlibコンパイル 'com.android.support:appcompat-v7:23.2.1' –
@ExceptionLoverはい私はその依存関係も試しました。まだ問題は続く –