기본 Eclipse 설치로 앱에 서명하고 출시하고 있습니다. default.properties 파일이나 proguard.cfg 파일을 잘못 읽지는 않았지만 Developer Console에서 스택 추적을 볼 때 줄 번호는 여전히 꺼져 있습니다. 그래서 내 코드가 여전히 약간 혼란스러워지고있는 것처럼 보입니다. 나는 ProGuard 문서를 읽었고,/proguard에 있어야하는 mapping.txt 파일을 찾으려고 시도했지만 거기에 해당 폴더 나 bin이 없다는 것을 알았습니다.개발자 콘솔 오류 보고서 및 ProGuard의 "Retrace"사용
여기에 무슨 일이 일어나고 있습니까? 자동 난독 화를 막을 수있는 방법이 있습니까, 아니면 적어도 mappings.txt 파일이 있습니까? 나는 어떤 통찰력을 주셔서 감사합니다. 여기 내 default.properties의 내용을 파일입니다 : 여기
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.
# Project target.
target=android-7
을 그리고 자동으로 생성 된 내 proguard.cfg 파일입니다
default.properties에서-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-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 com.android.vending.licensing.ILicensingService
-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}
-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
그래, default.properties에 추가하는 가장 좋은 방법은 무엇입니까? 경고를 무시하고 직접 편집하거나 Eclipse 프로젝트 속성에 묻힐 수 있습니까? 감사! – Weston
'target = android-7'아래에 'proguard.config = proguard.cfg'줄을 default.properties에 넣으십시오. – NickT