You won’t be able to get it much smaller and later version of Unity are bigger !!!īut no matter what you do, I doubt you’ll get a completed game smaller than ~20mb. Half of that size is taken up by the Unity engine.
The circled items in the image below are important to know when Debugging in Android Studio. Go back to EXPORTING TO Android Studio step 2B and enable Development Build.Also select Script Debugging then click the Export Button.ī.If you want to see Debug.Log messages, go to the Android Monitor Tab in the Android Studio. Under Connected Devices, select your device then click the OK button.Ī.If you want to be able to debug your App, you have to enable that from Unity. In this example we will use a real device to test. You can either chose the device to run the app on, create an emulator or chose already existing emulator to run the app. When finished, go to Build-> Make Project.Īfter project is done building, go to Run-> Run 'app'.Ĭ.A new Window will pop up.
Look at the image below for more information.ī.Wait for Android Studio to finish fixing the Gradle problem. If you don't see this message, make sure that you are in the Messages Tab. If using the gradle wrapper, try editing the distributionUrl in C:\AndroidTestProject\AndroidStudio\gradle\wrapper\gradle-wrapper.propertiesĪ.Simply click on the Fix Gradle wrapper and re-import project Gradle settings message. You will get an error that looks like this:Įrror:Minimum supported Gradle version is 2.14.1.
If Import project (Eclipse ADT,Gradle, etc.) is not displayed, close the current project by going to File-> Close Project.ī.Go to the full directory of the exported project C:/AndroidTestProject/test then select the test folder which is the Product Name of your project then click Ok.Ĭ.A new Window will pop up.
When you open Android Studio, click on Import project (Eclipse ADT,Gradle, etc.) The full path of that folder should be C:/AndroidTestProject/AndroidStudio.Ī.Open Android Studio. So in my case, the new Folder name will be called test and will be located at C:/AndroidTestProject/test.ġ.Create a new Folder called AndroidStudio in the C:/AndroidTestProject/ directory. This what my product name is in the Player Settings:
That folder will be named whatever your Product Name is in the Player Settings. Let's call it AndroidTestProject in this case and the full Directory will be C:/AndroidTestProject.ī.Select Android on the left then tick Google Android Project checkbox.ĭ.Select C:/AndroidTestProject then click the Select Folder Button.Īfter Generating the project, a new folder will be created in the C:/AndroidTestProject directory. This steps were made with the version mentioned above.ġ.Create a root folder that will hold the exported folders and files. Make sure the you have the latest version of Unity(5.4) and Android Studio(2.1.3).
Can anyone guide me how to successfully run a Unity-Android project in Android Studio?Įxporting and running Unit圓D project to Android Studio is not really hard. I have been working with Eclipse long ago but never faced this before. Run with -info or -debug option to get more log output. Try: Run with -stacktrace option to get the stack trace.
'C:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with (LauncherHelper.java:482)Ĭom.ProcessException: .ExecException: Process 'command $AppClassLoader.loadClass(Launcher.java:308) at (SecureClassLoader.java:142)Īt (URLClassLoader.java:449) at What went wrong: Execution failed for task ': 'ModuleName':transformClassesWithDexForDebug'. I am getting following errors in Gradle console: