lnln1111 / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
0 stars 0 forks source link

@Deprecated annotation causes crash #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.use @Deprecated annotation for a class

@Deprecated
class X{
}

2. compile apk in eclipse
3. decompile apk with apktool
4. compile again apk with apktool - in this state, there is a crash. because of 
using @Deprecated annotation

Original issue reported on code.google.com by adem...@gmail.com on 20 Jan 2012 at 2:01

GoogleCodeExporter commented 9 years ago
Try w/ apktool v1.5.0 and let me know if issue persists.

Original comment by connor.tumbleson on 16 Nov 2012 at 8:45

GoogleCodeExporter commented 9 years ago
No ex APK to test with and almost a year passed.

Original comment by connor.tumbleson on 30 Dec 2012 at 3:14

GoogleCodeExporter commented 9 years ago
I realized the problem. It is about locale. My locale is Turkish and according 
to Turkish, uppercase of 'i' is 'İ'. But, to work, it must be 'I'. this is 
main reason.

I fixed it to change apktool.bat.

I changed 

java -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9

to

java -Duser.language=en -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9 

Original comment by adem...@gmail.com on 14 Nov 2013 at 8:24

Attachments: