
This is an error which will produce a message similar to the following:- Building DEX Failed!
Use adb logcat to get the crash report from your device. Try removing any native plugins you have. Ensure that you are not trying to use NativeActivity with devices that do not support it. Your application crashes immediately after launch. If this happens, try connecting the device to a USB port on the computer itself. If you get an error saying “Unable to install APK, protocol failure” during a build then this indicates that the device is connected to a low-power USB port (perhaps a port on a keyboard or other peripheral).
This will often help diagnose the problem.
Check the error message in the Unity console. See the Publishing Builds page for further details. Verify that your computer can actually see and communicate with the device. Unity fails to install your application to your device Configure Unity with the installed Android SDK. This should configure the development tools correctly: Download a fresh copy of the latest ADT Bundle and install it following the instructions.
Bear in mind the latest version shouldn’t have conflicts, but users have experienced problems in the past.
Uninstall the current Android SDK and make sure that you don’t have more than one copy of it.