嗨,我做Android應用項目與一切編譯行之有效的Android 7.0ňAPI 24的Android Studio現在顯示此錯誤
現在,當我有一段時間我的 主要活動和資源顯示錯誤後重新啓動了Android工作室?
C:\Users\Hella\AndroidStudioProjects\Z\app\src\main\res\values-v21\styles.xml
Error:(3, 5) No resource found that matches the given name: attr 'windowActionBar'.
Error:(3, 5) No resource found that matches the given name: attr 'windowNoTitle'.
C:\Users\Hella\AndroidStudioProjects\Z\app\src\main\res\values\styles.xml
Error:No resource found that matches the given name: attr 'windowActionBar'.
Error:No resource found that matches the given name: attr 'windowNoTitle'.
Error:(4, 5) No resource found that matches the given name: attr 'colorAccent'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimary'.
Error:(4, 5) No resource found that matches the given name: attr 'colorPrimaryDark'.
C:\Users\Hella\AndroidStudioProjects\Z\app\build\intermediates\res\merged\debug\values\values.xml
Error:(11) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
Error:(17) Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Dark.ActionBar'.
Error:(22) Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Light'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Hella\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1
PS我的依賴顯示什麼我havenot添加任何程序兼容性支持,當我與Android 7編譯創建新的項目N個目標,它會自動擴展活動程序兼容性,它是很好,所有的建設是全成只是重新啓動後它不能化解appcompatactivity
它看起來像你的風格的XML和值XML只是缺少一些屬性,你可以嘗試一個乾淨和重建,或者只是檢查您的樣式對於windowActionBar,windowNoTitle等 – ziondreamt
你好沒有修復PS我的依賴沒有顯示任何我havenot添加任何appcompat支持,因爲當我用android 7創建新項目編譯n目標它自動擴展活動到appcompat,這很好,所有的構建是成功的,但是,剛剛重啓後它不能解決appcompatactivity –
確保你的build.gradle指向24以及? – Bill