18

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

ByteWelder
  • 5,464
  • 1
  • 38
  • 45
Genqing Song
  • 181
  • 1
  • 5

2 Answers2

6

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.

camsson
  • 61
  • 1
  • 2
0

It seems a compile issue. Try to check File -> project structure ->project -> set Gradle version and Android plugn version,then rebuild the project.

I found out the hidden issue by the operation.

larry li
  • 11
  • 1