Issue: Unity error Invalid command Android reason: Android version is newer, unity version is too old (such as 4.X), Unity Pack apk when call Android tool use command has been deprecated by Android (and unity does not know). WORKAROUND: Replace all content under the Android/sdk/tools folder with the old version of tools. (Remember to back up the original tools first) Question: Unityeditor.buildplayerwindow+buildmethodexception:build failed with errors.
At Unityeditor.buildplayerwindow+defaultbuildmethods.buildplayer (buildplayeroptions options) [0x001b9] in C \ Buildslave\unity\build\editor\mono\buildplayerwindowbuildmethods.cs:162at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askforbuildlocation, buildoptions defaultbuildoptions) [ 0X00050] in C:\buildslave\unity\build\editor\mono\buildplayerwindowbuildmethods.cs:83unityeditor.hostview:ongui ( Reason: Unity does not allow packaging into the project's assets folder.Workaround: Replace a build output directory (such as output to desktop). Reference:https://answers.unity.com/questions/1380921/build-failed-with-errors-at-unityeditorbuildplayer.htmlIssue: Commandinvokationfailure:failed to Re-package resources. Scenario: This error can occur when you are doing Android Unity Hybrid development, when you import an Android project into unity and then build a project with unity. Reason: Direct reference error to deal with each. Is that the Android project cannot find the picture under the Mipmap folder while reading the manifest file androidmanifest.xml. The project I created with Android Studio2.3.3 does not have a mipmap folder by default, and naturally I can't find the resources I need. Create a new folder and copy the pictures from the mipmap-hdpi folder.
"Unity" packaged Android APK FAQ