From 18e457900b4792388825ddc4f739f235c96ce6c3 Mon Sep 17 00:00:00 2001
From: Eric Schmidt
This layout is applied by the default {@link android.app.Activity} class -that the SDK tools generated when you created the project. Run the app to see the -results:
+that the SDK tools generated when you created the project. -To run the app and see the results,
+ click Run 'app'
.
-$ ant debug -adb install -r app/build/outputs/apk/app-debug.apk -
Continue to the next lesson to learn how to respond to button presses, read content diff --git a/docs/html/training/basics/firstapp/running-app.jd b/docs/html/training/basics/firstapp/running-app.jd index 99b38bfc63930..21fb64d83798b 100755 --- a/docs/html/training/basics/firstapp/running-app.jd +++ b/docs/html/training/basics/firstapp/running-app.jd @@ -76,46 +76,6 @@ from the toolbar.
Android Studio installs the app on your connected device and starts it.
-Open a command-line and navigate to the root of your project directory.
- Use Gradle to build your project in debug mode, invoke the assembleDebug build task
- using the Gradle wrapper script (gradlew assembleRelease).
-
-
This creates your debug .apk file inside the module build/
- directory, named app-debug.apk.
On Windows platforms, type this command:
- --> gradlew.bat assembleDebug -- -
On Mac OS and Linux platforms, type these commands:
- --$ chmod +x gradlew -$ ./gradlew assembleDebug -- -
After you build the project, the output APK for the app module is located in
- app/build/outputs/apk/
-
-
Note: The first command (chmod) adds the execution
- permission to the Gradle wrapper script and is only necessary the first time you build this
- project from the command line.
Make sure the Android SDK platform-tools/ directory is included in your
- PATH environment variable, then execute:
-
$ adb install app/build/outputs/apk/app-debug.apk
-
On your device, locate MyFirstApp and open it.
- -That's how you build and run your Android app on a device! - To start developing, continue to the next -lesson.
- - -Whether you're using Android Studio or the command line, to run your app on the emulator you need @@ -168,23 +128,8 @@ device.
When you do, My First App appears on the emulator screen. -app/build/outputs/apk/.platform-tools/ directory is included in your
- PATH environment variable.-
$ adb install app/build/outputs/apk/apk-debug.apk- -
That's how you build and run your Android app on the emulator! - To start developing, continue to the next - lesson.
+That's how you build and run your Android app on the emulator! +To start developing, continue to the next +lesson.