2016-08-11 4 views
0

Ich habe Fabric und Crashlytics in mein Unity-Projekt integriert und ich versuche, für Android zu bauen. Die Nachrichten, die ich bin immer sind:Problem mit Gebäude für Android

Failed to compile resources with the following parameters: 
-bootclasspath "/Users/mihai.stan/Library/Android/sdk/platforms/android-24/android.jar" -d "/Users/mihai.stan/Dev/SideScroller/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "com/tagonsoft/spaceattack/R.java" "io/fabric/answers/android/unity/R.java" "io/fabric/beta/android/unity/R.java" "io/fabric/crashlytics/android/unity/R.java" "io/fabric/sdk/android/unity/R.java" "io/fabric/unity/android/R.java" "io/fabric/unity/crashlytics/android/R.java" 
warning: /Users/mihai.stan/Library/Android/sdk/platforms/android-24/android.jar(java/lang/Object.class): major version 52 is newer than 51, the highest major version supported by this compiler. 
    It is recommended that the compiler be upgraded. 
warning: /Users/mihai.stan/Library/Android/sdk/platforms/android-24/android.jar(java/lang/AutoCloseable.class): major version 52 is newer than 51, the highest major version supported by this compiler. 
    It is recommended that the compiler be upgraded. 
2 warnings 

UnityEditor.HostView:OnGUI() 

und

UnityException: Resource compilation failed! 
    Failed to recompile android resource files. See the Console for details. 
    UnityEditor.Android.PostProcessAndroidPlayer.ShowErrDlgAndThrow (System.String title, System.String message, System.Exception ex) 
    UnityEditor.Android.PostProcessAndroidPlayer.ShowErrDlgAndThrow (System.String title, System.String message) 
    UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries) 
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) 
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) 
    UnityEditor.Android.AndroidBuild 

Postprocessor.PostProcess (BuildPostProcessArgs args) 
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) 
UnityEditor.HostView:OnGUI() 

und

Error building Player: UnityException: Resource compilation failed! 
Failed to recompile android resource files. See the Console for details. 

Denken Sie daran, dass ich sowohl die jkd und jre und Android Studio aktualisiert haben. Irgendwelche Tipps, wie Sie es beheben können?

+0

Warum nicht herausfinden, was das Problem verursacht? Sie können dies tun, indem Sie ein neues Projekt erstellen und dann versuchen, es zu erstellen. Wenn es funktioniert, füge die Plugins eins nach dem anderen hinzu und schau dir an, welches verhindert, dass Unity für Android baut. – Programmer

+0

Entschuldigung für die späte Antwort. Versucht, ein leeres Projekt ohne Stoff zu bauen, arbeitete. Versucht, mit Fabric und Crashlytics zu arbeiten, fehlgeschlagen, der gleiche Fehler wie der gepostete. –

Antwort

0

Ich habe es geschafft, es zu beheben. Ich hatte den jdk aktualisiert, aber Unity konnte den neuen Pfad nicht automatisch erkennen, also musste ich es manuell machen. Alles funktioniert jetzt wie geplant.