-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Building signed APK for release for Android app? #1613
Description
Recently I've been working on a simple app based on TensorFlow's Android demo, which depends on Bazel for building/running. However, I've gotten stuck on building an APK for release in the Play Store. The tutorial in the docs for building an Android app doesn't cover generating signed APKs, and while I've tried uploading the APKs that are generated by Bazel (in the bazel-bin folder), they've been rejected for various reasons. app.apk was rejected for being signed for debugging and app-signed.apk was rejected for not being zipaligned, and app-unsigned.apk is unsigned. Additionally, I haven't had any luck with instructions given here. Since trying to import the demo into Android Studio and build with Gradle only creates a whole slew of new errors, is there a way to use Bazel to generate a signed APK for release?