Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forces Closed After build Apk #20

Open
culunvb opened this issue Apr 18, 2020 · 5 comments
Open

Forces Closed After build Apk #20

culunvb opened this issue Apr 18, 2020 · 5 comments

Comments

@culunvb
Copy link

culunvb commented Apr 18, 2020

Any one help me please, when I build the apk my application force Closed for the first read using epub kitty reader version 0.1.7

I using flutter engine with information :

  • Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.3 19D76, locale en-ID)
  • Dart version 2.7.2
  • Android toolchain - develop for Android devices (Android SDK version 29.0.1)
  • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

when I trace from logcat in android studio I found this error
[retrieveDnsSnapshot] Error in opening the file [/data/data/com.example.tlkitty/cache/dnsSnapshot]: No such file or directory

I hope any one solved my Issues

@obitors
Copy link

obitors commented May 9, 2020

I am also facing the same issue

@obitors
Copy link

obitors commented May 13, 2020

try this:

I have solved it by adding following lines in build.gradle

buildTypes {
release {
signingConfig signingConfigs.debug
shrinkResources false
minifyEnabled false
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}

then create a proguard-rules.pro file in app folder and add these lines

-keepattributes Annotation
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe ;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }

@culunvb
Copy link
Author

culunvb commented May 13, 2020

try this:
I have solved it by adding following lines in build.gradle
buildTypes {
release {
signingConfig signingConfigs.debug
shrinkResources false
minifyEnabled false
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
then create a proguard-rules.pro file in app folder and add these lines
-keepattributes Annotation
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe ;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }

I have been try this solution but is not working

@Zfinix
Copy link
Contributor

Zfinix commented Aug 21, 2020

#21 (comment)

@Zfinix
Copy link
Contributor

Zfinix commented Aug 21, 2020

#31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants