0

我有一个AppCompatActivity,并且现在我想运行我的代码。我在活动开始得到这个错误:无法解析@ style/Theme.AppCompat.Light.NoActionBar

您需要如果我使用Theme.AppCompat,因为它建议我使用Theme.AppCompat主题(或后代)与本次活动

,但后来我得到这个:

无法解析@风格/ Theme.AppCompat.Light.NoActionBar

无论在AndroidManifest.xml,也不能在样式文件中使用它。

我使用这些依赖关系:

compile fileTree(include: ['*.jar'], dir: 'libs') 
compile 'com.android.support:design:25.3.1' 
compile 'com.google.firebase:firebase-database:10.2.0' 
compile 'com.android.support:cardview-v7:25.3.1' 
compile 'com.parse:parse-android:1.15.8' 
compile 'com.google.firebase:firebase-auth:10.2.0' 
compile 'com.facebook.android:facebook-android-sdk:[4,5)' 
compile "com.android.support:support-core-utils:25.4.0" 
compile 'com.android.support:appcompat-v7:25.4.0' 
compile 'com.android.support:support-v4:25.4.0' 
+0

你可以发布你的style.xml文件 – MaxExplode

回答

0

清洁&重建项目!

0

你已经在你的依赖混合支持Android库版本。确保所有com.android.support:*具有相同的版本号。