Last active
September 16, 2024 13:57
-
-
Save RimuruDev/a618b3bd85359faef0acd5fb2750be12 to your computer and use it in GitHub Desktop.
Revisions
-
RimuruDev revised this gist
Sep 16, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Solved ! ## Problem - Failed Unity Android Build with GA (Porting the WEBGL project to Android *YandexGame->GooglePlay) Error list: -
RimuruDev created this gist
Sep 16, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ # Solved ! ## Problem - Failed Unity Android Build with GA Error list: ```cs Assets/GameAnalytics/Plugins/Scripts/ILRD/GameAnalyticsILRD.cs(12,33): error CS1069: The type name 'AndroidJavaClass' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error. ``` ```cs Assets/GameAnalytics/Plugins/Scripts/Wrapper/GA_AndroidWrapper.cs(14,33): error CS1069: The type name 'AndroidJavaClass' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error. ``` ```cs Assets/GameAnalytics/Plugins/Scripts/Wrapper/GA_AndroidWrapper.cs(15,33): error CS1069: The type name 'AndroidJavaClass' could not be found in the namespace 'UnityEngine'. This type has been forwarded to assembly 'UnityEngine.AndroidJNIModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' Enable the built in package 'Android JNI' in the Package Manager window to fix this error. ``` ```cs Error building Player because scripts had compiler errors ``` ```cs Build completed with a result of 'Failed' in 8 seconds (8164 ms) 6 errors UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions) ZeroUltra.ExcludeFormBuild.BuildHandler:Build (UnityEditor.BuildPlayerOptions) (at ./Library/PackageCache/com.zeroultra.excludefrombuild@51f9f1cd5c/Editor/BuildHandler.cs:23) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203) ``` ```cs UnityEditor.BuildPlayerWindow+BuildMethodException at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002df] in /Users/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindowBuildMethods.cs:192 at ZeroUltra.ExcludeFormBuild.BuildHandler.Build (UnityEditor.BuildPlayerOptions buildOptions) [0x00000] in ./Library/PackageCache/com.zeroultra.excludefrombuild@51f9f1cd5c/Editor/BuildHandler.cs:23 UnityEngine.Debug:LogError (object) ZeroUltra.ExcludeFormBuild.BuildHandler:Build (UnityEditor.BuildPlayerOptions) (at ./Library/PackageCache/com.zeroultra.excludefrombuild@51f9f1cd5c/Editor/BuildHandler.cs:27) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203) ``` ```cs Build Failed UnityEngine.Debug:LogError (object) ZeroUltra.ExcludeFormBuild.ExcludeFormBuilder:BuildHandler_OnBuildFaild () (at ./Library/PackageCache/com.zeroultra.excludefrombuild@51f9f1cd5c/Editor/ExcludeFormBuilder.cs:117) ZeroUltra.ExcludeFormBuild.BuildHandler:Build (UnityEditor.BuildPlayerOptions) (at ./Library/PackageCache/com.zeroultra.excludefrombuild@51f9f1cd5c/Editor/BuildHandler.cs:28) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:203) ``` # Solution ## => Enable Android JNI <img width="260" alt="image" src="https://gist.github.com/user-attachments/assets/48bc42ad-f29f-4611-92f9-8eea5f194088"> <img width="355" alt="image" src="https://gist.github.com/user-attachments/assets/76eee63c-b8fb-4581-af31-f8bd5e87a407"> <img width="548" alt="image" src="https://gist.github.com/user-attachments/assets/a13dfe39-b83b-4e52-bee7-f6a6122bd65d">