آموزش های این وب سایت به صورت رایگان در دسترس است. اطلاعات بیشتر
بروز خطا
   [message]
اشتراک در سوال
رای ها
[dataList]

مشکل با ابفاسکیت کردن پروژه ؟!؟!

آس  11 سال پیش  11 سال پیش
0 0

سلام

موقعی که میخوام ساین و ابفاسکیت کنم با ارور زیر مواجه میشم
لطفا راهنماییم کنید
مرسی

Proguard returned with error code 1. See console
proguard.ParseException: Expecting opening '{' at ';' in line 27 of file 'M:\dev\project\android\iCalculator\proguard.cfg',
 included from argument number 2
at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:678)
at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:490)
at proguard.ConfigurationParser.parse(ConfigurationParser.java:138)
at proguard.ProGuard.main(ProGuard.java:484)

0 0
از کتابخانه یا چیز اضافه ای تو پروژتون استفاده کردید؟ (11 سال پیش)
+1 0
لینک (11 سال پیش)
0 0
مرسی ولی نه از لایبرری استفاده نکردم خود به خود لایبرری android-support-v4.jar ساخته شد! حالا چه باید بکنم؟ (11 سال پیش)
0 0
خط 27 هم اینه!!!! -keep public class * extends android.app.Activity; (11 سال پیش)
0 0
لایبرریشم پاک کردم ولی بازم نمیشه! (11 سال پیش)
+1 0
واس این ک خود به خود به وجود اومده فکر نکنم مشکلی باشه (11 سال پیش)
 برای این سوال 1 پاسخ وجود دارد.
پاسخ به سوال 
Mir Unknown  11 سال پیش
+2 0

کل اینو کپی کن بریز تو پوشه proguard.cfg

 # This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-verbose

# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
-dontoptimize
-dontpreverify

# If you want to enable optimization, you should include the
# following:
# -optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
# -optimizationpasses 5
# -allowaccessmodification
#
# Note that you cannot just include these flags in your own
# configuration file; if you are including this file, optimization
# will be turned off. You'll need to either edit this file, or
# duplicate the contents of this file and remove the include of this
# file from your project's proguard.config path property.

-keepattributes *Annotation*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService

# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}

-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}

-keepclassmembers class **.R$* {
public static <fields>;
}

# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**

0 0
آقا درست شد دمت گرم!!!! مرسی :)))))))))))))))) LIKE (11 سال پیش)

پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .