2015-09-16 69 views
0

產生的錯誤有以下幾種:錯誤在Android項目剛從的IntelliJ

Information:Gradle: Executing tasks: [clean, :app:compileDebugSources] 
Information:2015/9/16 10:48 - Compilation completed with 3 errors and 0 warnings in 5s 714ms 
Error:Gradle: Execution failed for task ':app:processDebugResources'. 
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\DevelopProgramPackage\AndroidSDK\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1 
F:\work\Workspaces\IntelliJWorkspace\AndroidTest\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\res\values-v23\values-v23.xml 
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. 
Error:(1, -1) Gradle: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. 

目標SDK是V21,和最低限度的SDK是V19。無論我選擇哪個版本,我都不知道IntelliJ爲什麼生成v23,這非常煩人。

如何解決? 我已經安裝了所有版本的sdks,並且互聯網上的解決方案完全無奈。

+0

變化烏爾目標SDK版本21國家重大主題 –

回答

0

變化清單和的build.gradle的minSdkVersion compileSdkVersion和targetVersionSdk相應否則轉到style.xml 和 使用Theme.AppCompat.Light 也 在你的應用程序標籤清單中