Source files for one or more software projects, and has a WORKSPACE file at Src/main/java/com/example/bazel/MainActivity.java and Greeter.javaĪ workspace is a directory that contains the Src/main/AndroidManifest.xml and src/main/java/com/example/bazel/AndroidManifest.xml Take a look at the source files for the app. The rest of the tutorial, you will be executing commands in this directory. The sample project for this tutorial is in examples/android/tutorial. This app has a single button that prints a greeting when clicked:Ĭlone the repository with git (or download the ZIP file Use git to download the Android app project.įor the sample project, use a basic Android app project in To install, follow the steps to download AndroidĮxecute the setup wizard to download the SDK and configure your environment. To install, follow the installation instructions. Deploy and run the app on an Android emulator or physical device.īefore you begin the tutorial, install the following software:.Update the WORKSPACE file to contain references to the requiredĮxternal dependencies, like the Android SDK.Set up a Bazel workspace that contains the source codeįor the app and a WORKSPACE file that identifies the top level of the.Set up your environment by installing Bazel and Android Studio, and.Require experience with Bazel or Android app development. This tutorial is intended for Windows, macOS and Linux users and does not This tutorial covers how to build a simple Android app using Bazel.īazel supports building Android apps using the While the Bazel team and Open Source Software (OSS) contributors work actively to address known issues, users should be aware that Android Studio does not officially support Bazel projects. Visit the Github team-Android hotlist to see the list of known issues. View source open_in_new Note: There are known limitations on using Bazel for building Android apps.
0 Comments
Leave a Reply. |