且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IntelliJ 12 + ActionBarSherlock设置:找不到类'android.support.v4.app.FragmentActivity'

更新时间:2023-11-15 21:12:04

此配置不正确, android-support-v4 库的范围必须设置为编译,因为它不在Android上,并且必须包含在您的应用中。

This configuration is not correct, the scope of the android-support-v4 library must be set to Compile as it's not present on Android and must be included in your application.

的第二个副本必须从应用程序依赖项中删除android-support-v4 ,它将通过为启用导出选项的库模块提供给您的应用程序android-support-v4

Second copy of android-support-v4 must be removed from the application dependencies, it will be available to your application via a library module that has Export option enabled for android-support-v4.