Guye Incognito
Guye Incognito

Reputation: 2844

Unity Android cant build

Unity 2019.3.15f1 Using the Android SDK, NDK and JDK installed by Unity hub

I get the following error when I try to build

  C:\PROJECTS\NEWS2\Temp\gradleOut\launcher\build\intermediates\bundle_manifest\release\processReleaseManifest\bundle-manifest\AndroidManifest.xml:58: error: attribute android:requestLegacyExternalStorage not found.

UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

There are actually 66 errors that show up when the build fails, but I think probably the one above is the salient one.

enter image description here

UPDATE: I tried reimport all, No change.

My colleague is able to build on his mac. I have Windows 10. I have also built this project before to Android no problem. So something in my environment is the issue I guess. I did install Android Studio relatively recently, that may have mucked up my system.. I also found a system variable for Android SDK in environment variables, I deleted it, restarted, but still get the same error.

UPDATE 2 So I am able to build another project using the same version of Unity ok.. So it is not purely my environment that is at fault...

Upvotes: 0

Views: 568

Answers (1)

Nor
Nor

Reputation: 11

check your SDk and NDK and Java are knowen by Unity; must be like those

enter image description here

.. which target Api you chose ?? API 29(if you want to publish it to google play atleast Target Api 29)

Upvotes: 1

Related Questions