Bug 392 - Error when signing release apk with custom key
Summary: Error when signing release apk with custom key
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 1.0
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: mono-android@xamarin.com
URL:
Depends on:
Blocks:
 
Reported: 2011-08-25 05:07 UTC by Alexandr
Modified: 2011-08-25 06:46 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Alexandr 2011-08-25 05:07:15 UTC
After signing release build of apk with custom key, it getting some dynamic behavior - periodically throwing some different exceptions.
Here is code:

_txtServerName = FindViewById<EditText>(Resource.Id.txtServerName);
_txtServerName.Focusable = true;
_txtServerName.FocusChange += TextViewFocusChange;
_txtServerName.TextChanged += EditTextChanged;
_txtServerName.Text = credentials.Server;

and logcat:

--------- beginning of /dev/log/system
I/InputManagerService( 1293): received close system dialog event
I/ActivityManager( 1293): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/.Launcher }
W/InputManagerService( 1293): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@45bea290 (uid=10068 pid=2084)
--------- beginning of /dev/log/main
D/dalvikvm( 1409): GC_EXTERNAL_ALLOC freed 3927 objects / 185648 bytes in 118ms
D/dalvikvm( 1409): GC_EXTERNAL_ALLOC freed 124 objects / 7816 bytes in 74ms
I/ActivityManager( 1293): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ruatti.r4c/ruatti.gui.LoginActivity }
I/ActivityManager( 1293): Start proc com.ruatti.r4c for activity com.ruatti.r4c/ruatti.gui.LoginActivity: pid=2121 uid=10071 gids={3003, 1015, 1007}
E/asset   ( 2121): MAS: getAppPckgAndVerCode package: com.ruatti.r4c === version 1
I/ActivityThread( 2121): Publishing provider com.ruatti.r4c.__mono_init__: mono.MonoRuntimeProvider
D/dalvikvm( 2121): Trying to load lib /data/data/com.ruatti.r4c/lib/libmonodroid.so 0x457ffbf8
D/dalvikvm( 2121): Added shared lib /data/data/com.ruatti.r4c/lib/libmonodroid.so 0x457ffbf8
D/dalvikvm( 2121): GC_FOR_MALLOC freed 12661 objects / 475304 bytes in 73ms
D/dalvikvm( 2121): GC_FOR_MALLOC freed 10000 objects / 470488 bytes in 65ms
I/ActivityManager( 1293): Process com.motorola.taskmanager (pid 1944) has died.
I/WindowManager( 1293): WIN DEATH: Window{45bb6f58 com.motorola.taskmanager/com.motorola.taskmanager.TaskManagerActivity paused=false}
D/dalvikvm( 2121): GC_FOR_MALLOC freed 8510 objects / 416616 bytes in 75ms
D/dalvikvm( 2121): Trying to load lib lib_glossary.so 0x0
I/dalvikvm( 2121): Unable to dlopen(lib_glossary.so): Cannot load library: load_library[1083]: Library 'lib_glossary.so' not found
E/MBGlossaryManager( 2121): lib_glossary.so can't be loaded
D/dalvikvm( 2121): GC_EXTERNAL_ALLOC freed 469 objects / 55376 bytes in 44ms
I/MonoDroid( 2121): UNHANDLED EXCEPTION: Java.Lang.Exception: Exception of type 'Java.Lang.Exception' was thrown.
I/MonoDroid( 2121): at Android.Runtime.JNIEnv.CallObjectMethod (intptr,intptr,Android.Runtime.JValue[]) <0x0007c>
I/MonoDroid( 2121): at Android.Runtime.JNIEnv.FindClass (string) <0x0010b>
I/MonoDroid( 2121): at Android.Runtime.JNIEnv.FindClass (System.Type) <0x00017>
I/MonoDroid( 2121): at Java.Lang.Object..ctor () <0x0002f>
I/MonoDroid( 2121): at Android.Text.TextWatcherImplementor..ctor (object,System.EventHandler`1<Android.Text.TextChangedEventArgs>,System.EventHandler`1<Android.Text.TextChangedEventArgs>,System.EventHandler`1<Android.Text.AfterTextChangedEventArgs>) <0x0002b>
I/MonoDroid( 2121): at Android.Widget.TextView.add_TextChanged (System.EventHandler`1<Android.Text.TextChangedEventArgs>) <0x0004b>
I/MonoDroid( 2121): at Ruatti.Gui.LoginActivity.CreateLoginView () <0x003db>
I/MonoDroid( 2121): at Ruatti.Gui.LoginActivity.OnCreate (Android.OS.Bundle) <0x000bf>
I/MonoDroid( 2121): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00057>
I/MonoDroid( 2121): at (wrapper dynamic-method) object.90630c46-611c-46f7-87f2-91f3a1c83612 (intptr,intptr,intptr) <0x00033>
I/MonoDroid( 2121): 
I/MonoDroid( 2121):   --- End of managed exception stack trace ---
I/MonoDroid( 2121): java.lang.ClassNotFoundException: android.text.TextWatcherImplementor in loader dalvik.system.PathClassLoader[/data/app/com.ruatti.r4c-1.apk]
I/MonoDroid( 2121): 	at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
I/MonoDroid( 2121): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
I/MonoDroid( 2121): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
I/MonoDroid( 2121): 	at ruatti.gui.LoginActivity.n_onCreate(Native Method)
I/MonoDroid( 2121): 	at ruatti.gui.LoginActivity.onCreate(LoginActivity.java:37)
I/MonoDroid( 2121): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
I/MonoDroid( 2121): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717)
I/MonoDroid( 2121): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
I/MonoDroid( 2121): 	at android.app.ActivityThread.access$2500(ActivityThread.java:129)
I/MonoDroid( 2121): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117)
I/MonoDroid( 2121): 	at android.os.Handler.dispatchMessage(Handler.java:99)
I/MonoDroid( 2121): 	at android.os.Looper.loop(Looper.java:143)
I/MonoDroid( 2121): 	at android.app.ActivityThread.main(ActivityThread.java:4717)
I/MonoDroid( 2121): 	at java.lang.reflect.Method.invokeNative(Native Method)
I/MonoDroid( 2121): 	at java.lang.reflect.Method.invoke(Method.java:521)
I/MonoDroid( 2121): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
I/MonoDroid( 2121): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
I/MonoDroid( 2121): 	at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 2121): threadid=1: thread exiting, not yet detached (count=0)
E/dalvikvm( 2121): ERROR: detaching thread with interp frames (count=15)
I/dalvikvm( 2121): "main" prio=5 tid=1 RUNNABLE
I/dalvikvm( 2121):   | group="main" sCount=0 dsCount=0 s=N obj=0x400208c0 self=0xcd40
I/dalvikvm( 2121):   | sysTid=2121 nice=0 sched=0/0 cgrp=default handle=-1345017784
I/dalvikvm( 2121):   at ruatti.gui.LoginActivity.n_onCreate(Native Method)
I/dalvikvm( 2121):   at ruatti.gui.LoginActivity.onCreate(LoginActivity.java:37)
I/dalvikvm( 2121):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
I/dalvikvm( 2121):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2717)
I/dalvikvm( 2121):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769)
I/dalvikvm( 2121):   at android.app.ActivityThread.access$2500(ActivityThread.java:129)
I/dalvikvm( 2121):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2117)
I/dalvikvm( 2121):   at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 2121):   at android.os.Looper.loop(Looper.java:143)
I/dalvikvm( 2121):   at android.app.ActivityThread.main(ActivityThread.java:4717)
I/dalvikvm( 2121):   at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 2121):   at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm( 2121):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
I/dalvikvm( 2121):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
I/dalvikvm( 2121):   at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 2121): 
E/dalvikvm( 2121): VM aborting
I/ActivityManager( 1293): Process com.ruatti.r4c (pid 2121) has died.
D/Zygote  ( 1031): Process 2121 exited cleanly (1)