xcqwan / BlueToothPrint

use blue tooth transpond POS message
6 stars 4 forks source link

Release apk, app is getting freeze and closing automatically #2

Open PemmasaniRajesh opened 7 years ago

PemmasaniRajesh commented 7 years ago

I'm using your library for my app. In debug mode it is working fine, but when i release the apk, app is getting freeze and closing automatically.

This issue is not happening in before marshmallow versions. It is happening to versions greater than lollipop. Like marshmallow and Nougat.

Could you please shed some light on this?

xcqwan commented 7 years ago

do you add "-keep class com.lvrenyang.* {;}" to proguard-rules.pro file?

PemmasaniRajesh commented 7 years ago

No, I didn't...

xcqwan commented 7 years ago

show you app's build.gradle file content

PemmasaniRajesh commented 7 years ago

apply plugin: 'com.android.application'

android { compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig { applicationId "xx.xxxx.xxx" minSdkVersion 19 targetSdkVersion 25 versionCode 14 versionName "4.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes {

    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':slideDateTimePicker')

compile 'com.google.firebase:firebase-crash:10.2.0'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
compile 'com.android.support:recyclerview-v7:25.0.0'
compile 'com.android.support:cardview-v7:25.0.0'
compile 'com.google.firebase:firebase-database:10.2.0'
compile 'com.android.support:support-v4:25.0.0'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.google.firebase:firebase-storage:10.2.0'
compile 'com.firebaseui:firebase-ui-storage:1.2.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.google.android.gms:play-services-vision:10.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'

}

apply plugin: 'com.google.gms.google-services'