

The easiest solution, however, is to install JDK in a non-space directory, for example: c:\java\jdk1.7 Building in Debug Modeįor immediate application testing and debugging, you can build your application in debug modeĪnd immediately install it on an emulator. To fix the problem, you can specify the JAVA_HOME variable like this: This location will cause ant to fail, because of Note: When installing JDK on Windows, the default is to install Need to declare the JAVA_HOME environment variable to specify the path to where the JDK is Install it and make sure it is in your executable PATH. If you don't have Ant, you can obtain it from the Apache Ant Getting started, however, you can quickly run your applications on an emulator or your ownĭevelopment device by building in debug mode. Procedure for generating a private key and then using it to sign your. You're ready to release your application and share it with end-users. It's important that you read and understand Signing Your Applications, particularly once Must manually sign it with your own private key, using Keytool and Jarsigner. You cannot distribute an application that is signed with a debug key. apk file is automatically signed by the SDK tools withĪ debug key, so it's instantly ready for installation onto an emulator or attachedĭevelopment device. apk file that you can install on an emulator or device. Whether you're building in debug mode or release mode, you need to use the Ant tool to compileĪnd build your project. In debug mode and with your own private key when building in release mode. It must be signed before it can install on an emulator or device-with a debug key when building Regardless of which way you build your application, Testing/debugging your application - debug mode - and one for building yourįinal package for release - release mode. There are two ways to build your application using the Ant build script: one for For more information on transitioning to these

You should migrate your app development projects toĪndroid Studio and Gradle as soon as possible.

Important: Support for Ant as a build tool for Android is ending, per ourĪnnouncement.
