Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot access android.support.v4.app.BaseFragmentActivityHoneycomb

Tags:

android

I implemented an Android application using support.v7.app.AppcompatActivity. This application doesn't compile: when I hold my mouse cursor above the super key it shows the following error:

Cannot access android.support.v4.app.BaseFragmentActivityHoneycomb

Android Studio screenshot

like image 735
Genqing Song Avatar asked Apr 29 '16 16:04

Genqing Song


1 Answers

I've a same problem. And my resolution is:

Replace project dependencies:

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'

}

with

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-annotations:24.0.0'

}

It works for me,good luck.

like image 72
camsson Avatar answered Oct 19 '22 17:10

camsson