2016-08-11 2 views
0

Unity 프로젝트에 Fabric 및 Crashlytics를 통합했으며 Android 용으로 제작하려고합니다. 내가 갖는 메시지는 다음과 같습니다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() 

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() 

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

내가 JKD 및 JRE와 안드로이드 스튜디오를 모두 업데이트 한 유의하십시오. 문제를 해결하는 방법에 대한 정보가 필요하십니까?

+0

왜이 문제의 원인을 찾아야합니까? 새 프로젝트를 만든 다음 빌드를 시도하여이 작업을 수행 할 수 있습니다. 작동하는 경우 플러그인을 하나씩 추가하고 Unity가 Android 용으로 제작하지 못하게하는 플러그인을 확인하십시오. – Programmer

+0

늦게 답변 해 주셔서 감사합니다. 직물없이 빈 프로젝트를 만들려고 노력했습니다. 패브릭 및 크래시 틱스 (Fabric and Crashlytics)와의 작업을 시도했지만 실패했습니다. 게시 된 것과 동일한 오류가 발생했습니다. –

답변

0

나는 그것을 고칠 수 있었다. jdk를 업데이트했지만 Unity가 새 경로를 자동으로 감지하지 못하여 수동으로 처리해야했습니다. 모든 것이 이제 의도대로 작동합니다.