java - enabling proguard on android failing -
i trying protect apk file using proguard prevent hackers decompiling code. have followed many tutorials online on how application crushes when follow advice online. tutorials have followed on:
enabling proguard in eclipse android
http://proguard.sourceforge.net/manual/examples.html#androidapplication
http://dominoc925.blogspot.com/2013/12/how-to-obfuscate-android-apk-file-using.html
the project.properties file in source directory looks :
# file automatically generated android tools. # not modify file -- changes erased! # # file must checked in version command systems. # # customize properties used ant build scheme edit # "ant.properties", , override values adapt script # project structure. # # enable proguard shrink , obfuscate code, uncomment (available properties: sdk.dir, user.home): proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # project target. target=android-18 android.library.reference.1=..\\appcompat_v7 android.library.reference.2=../../adt-bundle-windows-x86_64-20140702/sdk/extras/google /google_play_services/libproject/google-play-services_lib
when effort export signed apk , next error displayed in console:
[2014-11-14 12:41:18 - smart calculator] proguard returned error code 1. see console [2014-11-14 12:41:18 - smart calculator] proguard.parseexception: unknown alternative '(' in argument number 14 [2014-11-14 12:41:18 - smart calculator] @ proguard.configurationparser.parse(configurationparser.java:191) [2014-11-14 12:41:18 - smart calculator] @ proguard.proguard.main(proguard.java:484) [2014-11-14 12:41:29 - smart calculator] proguard returned error code 1. see console
line 14 line target=android-18 in project.properties file.
can please help me prepare error getting. :)d
proguard.config=proguard-project.txt
use instead of
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
java android encryption apk proguard
No comments:
Post a Comment