2017-08-05 2 views
1

こんにちはAdMobのプラグインを追加した後にアプリを構築することができませんユニティ.. が、私はAdMobのプラグインを追加した後 https://github.com/googleads/googleads-mobile-unity/releases/tag/v3.6.3それは以前働いていたので、私は私のゲームアプリのAPKを構築しようとしています

を構築するとき、私はこれらのエラーを受信を開始
Failed to compile resources with the following parameters: 
-bootclasspath "D:/Android/sdk\platforms\android-25\android.jar" -d "C:\Users\Eric\Documents\UnityProjects\Repos\HerderGame\HerderGame\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "android\support\v4\R.java" "com\google\android\gms\R.java" "com\google\android\gms\ads\R.java" "com\google\android\gms\ads\impl\R.java" "com\google\android\gms\base\R.java" "com\google\android\gms\clearcut\R.java" "com\google\android\gms\gass\R.java" "com\google\android\gms\tasks\R.java" "com\google\unity\ads\R.java" "com\Unity2D\Napmi\R.java" 
warning: D:\Android\sdk\platforms\android-25\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: D:\Android\sdk\platforms\android-25\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.AndroidBuildPostprocessor.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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316) 
UnityEditor.HostView:OnGUI() 

最後の1

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

アイデア?

答えて

2

Java SDKが現在のバージョンのAndroid SDKと互換性があり最新のものであることを確認してください。その問題については、アンドロイドSDK v。25も正しいことを確認してください。

"D:¥Android¥sdk¥platforms¥android-25¥android.jar(java/lang/Object.class):メジャーバージョン52は、このコンパイラでサポートされている最高のメジャーバージョンである51より新しいです。私はこのエラーとそれに似たものを検索します。

+1

ありがとうございます!私は今私のプロジェクトをコンパイルすることができます:私はちょうど最新のものに私のJava SDKを更新する1.8 – Napmi

関連する問題