Hi
I used to build in android in ue4 but never had this problems with it the only thing the size was becoming bigger with ue4 so I installed unity but it is having some problems during building.
Please help!
:)
![build error console][1]
[1]: /storage/temp/194221-screenshot-2022-03-21-163612.jpg
↧
BuildFailedException: Incremental Player build failed!
↧
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
I have re-installed unity 10 times. I have Downloaded and installed Android studio.
I have all the SDKS and JDKS and NDKS in zip fodders.
Every time I try to build I get this error. For every Version of unity I install.
No matter what you do you cannot build. using both 2021 and 2020. always get same errors.
nothing ever works its broken. I HAVE TRIED 3 DIFRENT HDD'S. and re-installing windows SAME ERRORS
" ANDROID IS BUILT IN PAKAGE LOL FALSE ADVERISING ITS BROKEN AND SOSNT WORK"
Yes I have set JAVA_HOME.
↧
↧
Android Build freezes on startup
**Hey everyone. I tried porting my mini game from pc to android. In the unity editor everything was going fine but the game just freezes the screen on startup on an actual device. I was wondering if the bug was coming from this script which is responsible for loading my custom splash screen and the main menu with SetAlpha:**
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using DiscordPresence;
using TMPro;
public class MenuAnimations : MonoBehaviour
{
public TextMeshProUGUI text1, text2;
public Image noit;
public GameObject quit, play, settings;
public AudioSource MainMenu;
public AudioClip keyboardClick, mainMenuMusic, sfx;
public float textSpeed = 0.5f;
public string fullText = "KINTER 2";
private string currentText = "";
public CanvasGroup mainMenuu;
void Start()
{
PresenceManager.UpdatePresence(detail: "Main Menu",start: System.DateTimeOffset.Now.ToUnixTimeSeconds());
MainMenu.clip = sfx;
MainMenu.Play();
text1.canvasRenderer.SetAlpha(0.0f);
noit.canvasRenderer.SetAlpha(0.0f);
FadeInLoading1();
StartCoroutine(Wait());
}
void FadeInLoading1()
{
text1.CrossFadeAlpha(1, 2, false);
noit.CrossFadeAlpha(1, 2, false);
}
void FadeOutLoading1()
{
text1.CrossFadeAlpha(0, 2, false);
noit.CrossFadeAlpha(0, 2, false);
}
public IEnumerator Wait()
{
yield return new WaitForSeconds(3f);
FadeOutLoading1();
yield return new WaitForSeconds(3f);
MainMenu.clip = keyboardClick;
for (int i = 0; i <= fullText.Length; i++)
{
currentText = fullText.Substring(0, i);
text2.text = currentText;
if(i==fullText.Length)
{
break;
}
MainMenu.Play();
yield return new WaitForSeconds(textSpeed);
}
MainMenu.clip = mainMenuMusic;
MainMenu.Play();
yield return new WaitForSeconds(0.5f);
quit.SetActive(true);
play.SetActive(true);
settings.SetActive(true);
while(mainMenuu.alpha < 1)
{
mainMenuu.alpha += Time.deltaTime;
yield return new WaitForSeconds(0.001f);
}
}
}
**Note: I know the code is too messy and very unoptimised but I made it a long time ago when I didn't know how to use Coroutines correctly.**
↧
Bringing Android NDK plugin with ARCore into Unity ,Exposing ARCore functionality through NDK
We would like to expose some functionality from ARCore through to Unity using NDK. The basic setup is as follows:
1. Take the ARCore sample project from the Android SDK
2. Implement a few new functions in the ARCore sample project in Android Studio
3. Build the project in Android Studio as a module
4. Bring the module into a Unity project and use the functions in the Unity app
To get started, we are stubbing out step 2 with a simple test function. This lets us verify the build setup is sane.
The workflow ultimately errors out in Unity because there are two ARCore modules: one from the sample module and one that Unity brings in from ARFoundation:
More than one file was found with OS independent path 'lib/armeabi-v7a/libarcore_sdk_c.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/preview/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake
In the build, we want to use the ARCore lib that is bundled with Unity's ARFoundation. The problem is if we remove the ARCore lib from the Android module, then that module doesn't build in Android Studio.
Is there a way to compile the ARCore sample without bundling the APCore library, then the linker can use the ARFoundation one once it's brought into Unity? Does anyone have a sample project?
↧
android api31
We're using Unity 2018.4.2f1 and the Android minimum API target was just updated to API31.
This leaves us in a bit of a bind because now we hit this error after we updated our target api in the project settings:
`11-05 03:14:43.645 26374 26407 E AndroidRuntime: FATAL EXCEPTION: pool-16-thread-1
11-05 03:14:43.645 26374 26407 E AndroidRuntime: Process: com.sample.proj, PID: 22274
11-05 03:14:43.645 26374 26407 E AndroidRuntime: java.lang.IllegalArgumentException: com.n3twork.legendary: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
11-05 03:14:43.645 26374 26407 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at android.app.PendingIntent.checkFlags(PendingIntent.java:401)
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:671)
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at android.app.PendingIntent.getBroadcast(PendingIntent.java:658)
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:174)
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:108)
11-05 03:14:43.645 26374 26407 E AndroidRuntime: at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:86)`
We see that we're using some androidx libraries (firebase for push notifications), but trying to update them gets us:
`ClassNotFoundException: Didn't find class "androidx.startup.InitializationProvider" on path`
Is there anyone that has gone through this and has some pointers?
Thank you!
↧
↧
No build, gradle failure
![Console error][1]
[1]: /storage/temp/202507-318099839-2359868407484399-5886250851480967818-n.jpg
Anyone knows how to fix it? I tried so many things including upgrading to new version of engine, using default ndk and skd, gradle, using android studio's stuff instead of unity's. no result
↧
Android build compilation error 'Minimum supported Android API level is 22 (Android 5.1 Lollipop). Please use AndroidApiLevel22 or higher'
Hello, I upgraded my project from 2020.3.19f1 to 2021.3.15f1, and am now getting a compilation error:> Library\PackageCache\com.google.android.appbundle@1.4.0\Editor\Scripts\Internal\BuildTools\BundletoolHelper.cs(133,46):> error CS0619:> 'AndroidSdkVersions.AndroidApiLevel21'> is obsolete: 'Minimum supported> Android API level is 22 (Android 5.1> Lollipop). Please use> AndroidApiLevel22 or higher'
I have checked my minimum SDK in the Player settings and it does not matter what I set it to, the compilation error will not go away. I even checked the project settings file in my folder paths and it shows the correct minimum SDK that was selected from within the editor. Please help me resolve this issue, I can't do anything on my project anymore!
↧
Apkanalyzer failed to estimate the apk size
Hey guys! Got this issue after apk build. Build was successful but game crashed cause of some corruption. Sadly I cannot find root of the problem. Re-installment of Unity and tools did not fix the problem. Maybe I'm missing some system files?..
System.Exception: apkanalyzer failed to estimate the apk size. Output:
Error: Could not find or load main class Files\Unity\Hub\Editor\2022.1.23f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\cmdline-tools\6.0\bin\\..
Btw here is logcat:
2022.12.30 16:10:44.302 13186 13266 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022.12.30 16:10:44.303 13186 13266 Error CRASH Version '2022.1.23f1 (9636b062134a)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a'
2022.12.30 16:10:44.303 13186 13266 Error CRASH Build fingerprint: 'HONOR/COL-L29RU/HWCOL:10/HUAWEICOL-L29/10.0.0.177C10:user/release-keys'
2022.12.30 16:10:44.303 13186 13266 Error CRASH Revision: '0'
2022.12.30 16:10:44.303 13186 13266 Error CRASH ABI: 'arm'
2022.12.30 16:10:44.304 13186 13266 Error CRASH Timestamp: 2022-12-30 16:10:44+0300
2022.12.30 16:10:44.304 13186 13266 Error CRASH pid: 13186, tid: 13266, name: Thread-6 >>> com.Kefir.tpso <<<
2022.12.30 16:10:44.304 13186 13266 Error CRASH uid: 10573
2022.12.30 16:10:44.304 13186 13266 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x318
2022.12.30 16:10:44.304 13186 13266 Error CRASH Cause: null pointer dereference
2022.12.30 16:10:44.304 13186 13266 Error CRASH r0 00000000 r1 00000000 r2 7b05c520 r3 00000020
2022.12.30 16:10:44.304 13186 13266 Error CRASH r4 7b05c500 r5 aeeffd00 r6 aff50010 r7 00000005
2022.12.30 16:10:44.304 13186 13266 Error CRASH r8 b7d0e580 r9 000a0004 r10 0000003e r11 0800000a
2022.12.30 16:10:44.304 13186 13266 Error CRASH ip bbe1c84c sp b00d00e0 lr baee1385 pc bb5733e4
2022.12.30 16:10:44.304 13186 13266 Error CRASH
2022.12.30 16:10:44.304 13186 13266 Error CRASH backtrace:
2022.12.30 16:10:44.305 13186 13266 Error CRASH #00 pc 008613e4 /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #01 pc 00862168 /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #02 pc 007fe6ac /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #03 pc 003db03b /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #04 pc 009a7543 /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #05 pc 009a2a93 /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #06 pc 009a282b /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #07 pc 002fd6cf /data/app/com.company.project-1xoFtDeEuk_VzAmOpF7AhQ==/lib/arm/libunity.so (BuildId: 41c8bc78cf2cf9f72a138db80e6ae00a8a13c057)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #08 pc 0009c5e7 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: b3a547af3eb880c5dfd66f61a8c8b4ca)
2022.12.30 16:10:44.305 13186 13266 Error CRASH #09 pc 00055a97 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: b3a547af3eb880c5dfd66f61a8c8b4ca)
↧
please help! i cannot build my oculus quest game
i keep trying to build my quest game and i keep getting this error:
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <433cbae83977409887e43d50043210d2>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <433cbae83977409887e43d50043210d2>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
are there any fixes??? please let me know
↧
↧
I can not to build the game on android. Exception in thread "main" java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)...
When I try to build my android game on unity I have this problem:
When I test the game via unity remote problem has not exist.
Android SDK and Android platform already has been installed on my pc via unity.
I can't to solve it. Please, help!!!
![alt text][1]
[1]: /storage/temp/204130-photo-2023-01-22-21-33-10.jpg
> Exception in thread "main"> java.lang.ExceptionInInitializerError> at> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native> Method) at> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)> at> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)> at> java.lang.reflect.Constructor.newInstance(Constructor.java:423)> at> java.lang.Class.newInstance(Class.java:442)> at> com.sun.org.apache.xerces.internal.utils.ObjectFactory.newInstance(ObjectFactory.java:158)> at> com.sun.org.apache.xerces.internal.utils.ObjectFactory.newInstance(ObjectFactory.java:143)> at> com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:73)> at> com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:57)> at> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.reset(XMLSchemaLoader.java:1024)> at> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:556)> at> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:535)> at> com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:254)> at> com.android.repository.impl.meta.SchemaModuleUtil.getSchema(SchemaModuleUtil.java:166)> at> com.android.repository.impl.meta.SchemaModuleUtil.setupUnmarshaller(SchemaModuleUtil.java:212)> at> com.android.repository.impl.meta.SchemaModuleUtil.unmarshal(SchemaModuleUtil.java:194)> at> com.android.repository.impl.manager.LocalRepoLoaderImpl.parsePackage(LocalRepoLoaderImpl.java:301)> at> com.android.repository.impl.manager.LocalRepoLoaderImpl.parsePackages(LocalRepoLoaderImpl.java:159)> at> com.android.repository.impl.manager.LocalRepoLoaderImpl.getPackages(LocalRepoLoaderImpl.java:124)> at> com.android.repository.impl.manager.RepoManagerImpl$LoadTask.run(RepoManagerImpl.java:518)> at> com.android.repository.api.RepoManager$DummyProgressRunner.runSyncWithProgress(RepoManager.java:397)> at> com.android.repository.impl.manager.RepoManagerImpl.load(RepoManagerImpl.java:365)> at> com.android.repository.api.RepoManager.loadSynchronously(RepoManager.java:290)> at> com.android.sdklib.repository.AndroidSdkHandler$RepoConfig.createRepoManager(AndroidSdkHandler.java:725)> at> com.android.sdklib.repository.AndroidSdkHandler.getSdkManager(AndroidSdkHandler.java:296)> at> com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.setSdkHandler(SdkManagerCliSettings.java:101)> at> com.android.sdklib.tool.sdkmanager.SdkManagerCli.(SdkManagerCli.java:95)> at> com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:74)> at> com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)> Caused by: java.lang.RuntimeException:> internal error at> com.sun.org.apache.xerces.internal.impl.dv.xs.XSSimpleTypeDecl.applyFacets1(XSSimpleTypeDecl.java:754)> at> com.sun.org.apache.xerces.internal.impl.dv.xs.BaseSchemaDVFactory.createBuiltInTypes(BaseSchemaDVFactory.java:208)> at> com.sun.org.apache.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl.createBuiltInTypes(SchemaDVFactoryImpl.java:47)> at> com.sun.org.apache.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl.(SchemaDVFactoryImpl.java:42)> ... 29 more Picked up> JAVA_TOOL_OPTIONS:> -Dfile.encoding=UTF-8>> UnityEngine.GUIUtility:ProcessEvent> (int,intptr,bool&)
↧
unable to install the android module
i had a bug with the unity sdk so i tried to uninstall the android module and it just wont let me download it again its gone and unity knows it but doesn't want me to install it ![alt text][1]
[1]: /storage/temp/204305-unity.png
↧
solve an error on build for android apk in unity
I download unity 2022.3.5 because its support jdk 11 and when build my app it show me this error:
`Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Warning: Failed to download any source lists!
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '-'
at java.base/java.util.Formatter.checkText(Formatter.java:2732)
at java.base/java.util.Formatter.parse(Formatter.java:2718)
at java.base/java.util.Formatter.format(Formatter.java:2655)
at java.base/java.io.PrintStream.format(PrintStream.java:1053)
at java.base/java.io.PrintStream.printf(PrintStream.java:949)
at com.android.sdklib.tool.sdkmanager.TableFormatter.print(TableFormatter.java:72)
at com.android.sdklib.tool.sdkmanager.ListAction.printList(ListAction.java:197)
at com.android.sdklib.tool.sdkmanager.ListAction.execute(ListAction.java:80)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.run(SdkManagerCli.java:110)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:87)
at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:49)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)`
and it give me that error on screen:
Failed to update android sdk package list
it must give me back a list of sdk for continue build but i think problem is in:JAVA_TOOL_OPTIONS
i try to set a JAVA_TOOL_OPTIONS because i dont have it in enviroment varible and i try to update sdkmanger by using this:sdkmanager --update
↧
how to change option setting 'android.bundle.enableUncompressedNativeLibs=false' in gradle
I tried to get apk after admob integration for android. I ran into the "Enable R8" issue. I activated File > Project Settings > Player > Publishing Settings , Custom base gradle template option. Then I changed the line "classpath 'com.android.tools.build:gradle:4.0.1'" to "classpath 'com.android.tools.build:gradle:3.4.1'" in the file "baseProjectTemplate.gradle". I was able to extract apk without an error.
Enable R8 problem is ;
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
Then i tried to print aab and got an error.
warning ; > Configure project :launcher
WARNING: The option setting 'android.bundle.enableUncompressedNativeLibs=false' is experimental and unsupported.
The current default is 'true'.
For the solution, I looked at the topics opened in the forum and even scanned the internet, but as of now, I can't get aab output in 2021.3.16f1 version.
↧
↧
Hi. I'm trying to build a simple little Android game and I keep getting this gradle build error. Anyone have any idea why?
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <7fef092428a04dc89d2aa6ad3ce5d856>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <7fef092428a04dc89d2aa6ad3ce5d856>:0
0x00007ff7eee3b56d (Unity) StackWalker::GetCurrentCallstack
0x00007ff7eee42129 (Unity) StackWalker::ShowCallstack
0x00007ff7efdc94e3 (Unity) GetStacktrace
0x00007ff7f047678d (Unity) DebugStringToFile
0x00007ff7edf9c212 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x000001e266b580d3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
0x000001e266b5800b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
0x000001e266b57d90 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
0x000001e2d4876f75 (Mono JIT Code) UnityEngine.Debug:LogError (object)
0x000001e266a4c7cb (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
0x000001e266a34113 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)
0x000001e266a22233 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings ()
0x000001e2669ff993 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI ()
0x000001e2fda4655a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001e2fda46373 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect)
0x000001e2fda3451b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001e2fda1b4d7 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001e2fda1a59b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001e2468b938b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool)
0x000001e2468b9213 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool)
0x000001e26699439b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e266994293 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool)
0x000001e23df46b3b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase)
0x000001e23df396d8 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase)
0x000001e266991e63 (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e23df37b5e (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool)
0x000001e23df376fb (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e23df3d47b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue ()
0x000001e23df3bd23 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate ()
0x000001e23df3bc7b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose ()
0x000001e23df37983 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel)
0x000001e23df371c3 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode)
0x000001e23df3705b (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode)
0x000001e2fd9d0403 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001e24104fb93 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001e24104f9af (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001e24585ffbb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001e24105ff4d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001e24104f856 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffb20a5feb4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffb2099e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffb2099e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff7eed5ff04 (Unity) scripting_method_invoke
0x00007ff7eed3f704 (Unity) ScriptingInvocation::Invoke
0x00007ff7eed3a305 (Unity) ScriptingInvocation::Invoke
0x00007ff7eee845da (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7ef8a8c18 (Unity) GUIView::ProcessRetainedMode
0x00007ff7efdfa211 (Unity) GUIView::OnInputEvent
0x00007ff7ef8a8a2a (Unity) GUIView::ProcessInputEvent
0x00007ff7efdfb02d (Unity) GUIView::ProcessEventMessages
0x00007ff7efdf4cf9 (Unity) GUIView::GUIViewWndProc
0x00007ffb7efe8281 (USER32) DispatchMessageW
0x00007ffb7efe7d41 (USER32) DispatchMessageW
0x00007ff7efdcf503 (Unity) MainMessageLoop
0x00007ff7efdd3f4b (Unity) WinMain
0x00007ff7f119b05e (Unity) __scrt_common_main_seh
0x00007ffb804026bd (KERNEL32) BaseThreadInitThunk
0x00007ffb80aadfb8 (ntdll) RtlUserThreadStart
↧
Unity 2020.3.27f1 Gradle build failed
Hello there, I'm having a problem these days with unity that I can't build apk because of this error
https://media.discordapp.net/attachments/780492890647298049/1098347101068472501/image.png
and I tried a lot of time to solve it and nothing worked at all
I tried to reinstall Android SDK build tools 33.0.2 and it didn't work out neither
so I will give you all the error in consoles I get so you can probably understand my issue
and if you may wonder, the gradle I have is 6.9.2 and its download size was 143 (compressed) just in case
I hope someone respond as soon as possible, this is very important!
error #1:
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Not a number: 33x:
java.lang.NumberFormatException: Not a number: 33x
at com.sun.xml.bind.DatatypeConverterImpl._parseInt(DatatypeConverterImpl.java:125)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$18.parse(RuntimeBuiltinLeafInfoImpl.java:742)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$18.parse(RuntimeBuiltinLeafInfoImpl.java:740)
at com.sun.xml.bind.v2.runtime.unmarshaller.TextLoader.text(TextLoader.java:69)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:590)
at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:213)
at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.endElement(SAXConnector.java:176)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:610)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1784)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2969)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:113)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:507)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:867)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:796)
error #2:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'.
> Installed Build Tools revision 33.0.2 is corrupted. Remove and install again using the SDK Manager.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
error #3:
CommandInvokationFailure: Gradle build failed.
D:\Programs - Games\Unity\2020.3.27f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\Programs - Games\Unity\2020.3.27f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle-6.9.2\lib\gradle-launcher-6.9.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac
error #4:
Build completed with a result of 'Failed' in 155 seconds (155292 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
error #5
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <63ccfe108ffa44728b417cb47fb2f841>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <63ccfe108ffa44728b417cb47fb2f841>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
↧