بروز خطا
[message]
اشتراک در سوال
رای ها
[dataList]
مشکل با proguard
سلام
من توی gradle از این کتابخونه ها استفاده کردم
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleDependency,GradleCompatible
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support:design:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.squareup.okhttp:okhttp:2.7.5'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.7.5'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'me.wangyuwei:ParticleView:1.0.5'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:cardview-v7:25.1.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
و توی proguard-ruls هم از این ها استفاده کردم
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
-keep class com.google.gson.examples.android.model.** { *; }
-keep class retrofit2.** { *; }
-keepattributes Exceptions
-keepattributes *Annotation
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.stream.* { *; }
# When layoutManager xml attribute is used, RecyclerView inflates
#LayoutManagers' constructors using reflection.
-keep public class * extends android.support.v7.widget.RecyclerView$LayoutManager {
public <init>(...);
}
# http://stackoverflow.com/questions/29679177/cardview-shadow-not-appearing-in-lollipop-after-obfuscate-with-proguard/29698051
-keep class android.support.v7.widget.RoundRectDrawable { *; }
# OkHttp
-keepattributes *Annotation*
-keep interface com.squareup.okhttp.** { *; }
-dontwarn com.squareup.okhttp.**
-dontwarn okio.
-keep class com.squareup.okhttp3.** {*;}
-keepattributes Annotation
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn org.xmlpull.v1.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
-dontwarn javax.annotation.GuardedBy
-dontwarn javax.annotation.**
الان مشکل اینجاست که برنامه کاملا بیلد میشه ولی موقع اجرا force close میشه. کسی میدونه چی باید به پروگارد اضافه کنم؟
0
0
متن ارور که باعث کرش میشه رو قرار بدید. (8 سال پیش)
برای این سوال پاسخی وجود ندارد.
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .