berkus / android-apktool

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

keyboard.apk and deodexing #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1../apktool d ruKeyboard_v1.5.4_r72.apk

It deodexed with success

Now i right now compile it, and don't make any changes

2../apktool build ruKeyboard_v1.5.4_r72/ key_milestone_butch.apk && jarsigner 
-verbose -keystore store key_milestone_butch.apk key

Then in android system
Settings - Language and keyboard - russian keyboard - virtual keyboard - select 
keyboard
it failing with

05-29 02:14:59.085  1623  1623 I ActivityManager: Starting activity: Intent { 
cmp=ru.androidteam.rukeyboard/.activity.SoftKeboardPreview }
05-29 02:14:59.116  1623  1627 I foo     : ********************** resuming: 
1172720552
05-29 02:14:59.147  3143  3143 D AndroidRuntime: Shutting down VM
05-29 02:14:59.147  3143  3143 W dalvikvm: threadid=3: thread exiting with 
uncaught exception (group=0x4001e288)
05-29 02:14:59.155  3143  3143 E AndroidRuntime: Uncaught handler: thread main 
exiting due to uncaught exception
05-29 02:14:59.155  3143  3143 E AndroidRuntime: java.lang.RuntimeException: 
Unable to start activity 
ComponentInfo{ru.androidteam.rukeyboard/ru.androidteam.rukeyboard.activity.SoftK
eboardPreview}: android.view.InflateException: Binary XML file line #5: Error 
inflating class ru.androidteam.rukeyboard.LatinKeyboardView
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2558)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread.access$2400(ActivityThread.java:121)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1925)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.os.Handler.dispatchMessage(Handler.java:99)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.os.Looper.loop(Looper.java:136)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread.main(ActivityThread.java:4425)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
java.lang.reflect.Method.invokeNative(Native Method)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
java.lang.reflect.Method.invoke(Method.java:521)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
dalvik.system.NativeStart.main(Native Method)
05-29 02:14:59.155  3143  3143 E AndroidRuntime: Caused by: 
android.view.InflateException: Binary XML file line #5: Error inflating class 
ru.androidteam.rukeyboard.LatinKeyboardView
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.createView(LayoutInflater.java:513)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198
)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.Activity.setContentView(Activity.java:1622)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
ru.androidteam.rukeyboard.activity.SoftKeboardPreview.onCreate(SoftKeboardPrevie
w.java:149)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2521)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   ... 11 more
05-29 02:14:59.155  3143  3143 E AndroidRuntime: Caused by: 
java.lang.reflect.InvocationTargetException
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
ru.androidteam.rukeyboard.LatinKeyboardView.<init>(LatinKeyboardView.java:17)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
java.lang.reflect.Constructor.constructNative(Native Method)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
android.view.LayoutInflater.createView(LayoutInflater.java:500)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   ... 21 more
05-29 02:14:59.155  3143  3143 E AndroidRuntime: Caused by: 
java.lang.NullPointerException
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
ru.androidteam.rukeyboard.view.KeyboardView.<init>(KeyboardView.java:329)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   at 
ru.androidteam.rukeyboard.view.KeyboardView.<init>(KeyboardView.java:272)
05-29 02:14:59.155  3143  3143 E AndroidRuntime:   ... 25 more
05-29 02:14:59.170  1623  1736 I Process : Sending signal. PID: 3143 SIG: 3
05-29 02:14:59.170  1623  1736 E ActivityManager: SIGNAL_QUIT: to crashed 
process 3143

Please provide any additional information below.

If i not repack it all working fine.
Gow i can fix it?

My system:

uname -a
Linux gn-desktop 2.6.39-gentoo #1 SMP PREEMPT Mon May 23 03:57:33 MSD 2011 
x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux

java

sun-jdk-1.6

Original issue reported on code.google.com by nobodyd...@gmail.com on 28 May 2011 at 10:21

GoogleCodeExporter commented 9 years ago
Fixed in v1.5.0

Original comment by connor.tumbleson on 18 Nov 2012 at 7:50