Build Sample Android App on App Center
Important
Visual Studio App Center is scheduled for retirement on March 31, 2025. While you can continue to use Visual Studio App Center until it is fully retired, there are several recommended alternatives that you may consider migrating to.
Prerequisites
- Follow the getting started tutorial to set up the sample app.
- Optional: signed APK. Go to the Android Developer Documentation to learn about creating a new keystore and manually signing an APK.
Set up the repository
Go to the Build service in App Center.
Choose GitHub as the selected service.
Sign in to GitHub, and click Authorize AppCenter.
Choose sampleapp-android.
Configure the build
Choose the main branch.
Click Configure build. The Build configuration panel will show up.
The default setting for build frequency is Build this branch on every push. Every time you push code to a configured branch, a build will automatically begin. You can enable this continuous integration feature or opt to manually choose when builds run.
If you want to run the build on a device, turn Sign builds on. If you followed the instructions on Getting Started, you can upload your keystore file and fill in the environment variables or check My Gradle settings are entirely set to handle signing automatically.
Click Save at the bottom of the page, and the build will begin.
The build should complete after a couple minutes. Once the build has completed, you can download the results by clicking Download. This includes logs and, if the build was successful, build output and symbols.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for