Skip to content

Building signed APK for release for Android app? #1613

@cardshuffle

Description

@cardshuffle

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions