Skip to content

Caffe 2 android app not working with proguard and minifyEnabled #39298

Open
@asifk1997

Description

@asifk1997

🐛 Bug

I used this app
https://github.com/bwasti/AICamera

It ran fine when i used it without using proguard and minifyEnabled true

    debug {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }

After doing this it started crashing.

Edit 1:

I also noticed that the app is crashing when i changed the Build Variant from GUI it started crashing.
But when I enabled proguard directly using build.gradle file without touching build variant gui it was working fine.

Activity

gchanan

gchanan commented on Jun 1, 2020

@gchanan
Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Caffe 2 android app not working with proguard and minifyEnabled · Issue #39298 · pytorch/pytorch