Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/223.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
来自TFS构建服务器的已签名Android APK间歇性崩溃_Android_Xamarin_Xamarin.android - Fatal编程技术网

来自TFS构建服务器的已签名Android APK间歇性崩溃

来自TFS构建服务器的已签名Android APK间歇性崩溃,android,xamarin,xamarin.android,Android,Xamarin,Xamarin.android,环境信息:应用程序在C#/Xamarin/VS2015中开发。CI内置TFS 生成服务器使用.csproj中指定的密钥库生成已签名的APK 文件Xamarin版本4.3.0.789和Xamarin.Android版本7.1.0.43 我遇到的问题是,有时,在没有明显原因的情况下,生成的APK会在打开某个屏幕/活动时崩溃。当它是一个“有故障”的APK时,它总是发生在同一屏幕上。有效和故障APK之间没有代码更改(通过更改无关文件中的注释以启动CI构建进行验证),TFS服务器/环境也没有更改 APK之

环境信息:应用程序在C#/Xamarin/VS2015中开发。CI内置TFS 生成服务器使用.csproj中指定的密钥库生成已签名的APK 文件Xamarin版本4.3.0.789和Xamarin.Android版本7.1.0.43

我遇到的问题是,有时,在没有明显原因的情况下,生成的APK会在打开某个屏幕/活动时崩溃。当它是一个“有故障”的APK时,它总是发生在同一屏幕上。有效和故障APK之间没有代码更改(通过更改无关文件中的注释以启动CI构建进行验证),TFS服务器/环境也没有更改

APK之间的设备上没有发生任何不同,并跨多个设备验证了这一点。在旧版本的Xamarin上出现相同问题,已尝试更新并继续出现相同问题

在调试中本地运行,无法重新编程。已禁用共享运行时,链接器仅设置为SDK程序集。生成中没有产生错误APK的错误

粘贴在下面的logcat消息引用SimpleListItem2CheckedIndexedAdapter,这是一个在一些地方使用的自定义可检查视图。但由于APK在大多数情况下都能正常工作,我想知道这是不是在转移注意力

--------- beginning of system
04-03 15:19:39.894 I/ActivityManager( 1092): START u0 {cmp=PackageName/md5ba12c8fb46bd054e4b4e431f91f82328.VehicleCheckView (has extras)} from uid 10194 on display 0
04-03 15:19:40.039 W/art     (11339): JNI RegisterNativeMethods: attempt to register 0 native methods for md5ac3c6372e65750ca70261904a169a5a9.VehicleCheckFragmentPage
04-03 15:19:40.151 I/MonoDroid(11339): UNHANDLED EXCEPTION:
04-03 15:19:40.154 I/MonoDroid(11339): System.ArgumentException: An item with the same key has already been added.
04-03 15:19:40.154 I/MonoDroid(11339):   at System.ThrowHelper.ThrowArgumentException (System.ExceptionResource resource) [0x0000b] in <7c63250b2e0e4a7ea8b6c66479c70025>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (TKey key, TValue value, System.Boolean add) [0x0008e] in <7c63250b2e0e4a7ea8b6c66479c70025>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <7c63250b2e0e4a7ea8b6c66479c70025>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Java.Interop.TypeManager.RegisterType (System.String java_class, System.Type t) [0x00041] in <255c4ce2d8d0441c8d86df754d96e9d9>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Android.Runtime.TypeManager.RegisterType (System.String java_class, System.Type t) [0x00000] in <255c4ce2d8d0441c8d86df754d96e9d9>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Android.Runtime.JNIEnv.RegisterJniNatives (System.IntPtr typeName_ptr, System.Int32 typeName_len, System.IntPtr jniClass, System.IntPtr methods_ptr, System.Int32 methods_len) [0x000de] in <255c4ce2d8d0441c8d86df754d96e9d9>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at (wrapper managed-to-native) Java.Interop.NativeMethods:java_interop_jnienv_call_object_method_a (intptr,intptr&,intptr,intptr,Java.Interop.JniArgumentValue*)
04-03 15:19:40.154 I/MonoDroid(11339):   at Java.Interop.JniEnvironment+InstanceMethods.CallObjectMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006b] in <013bf3b17eee4306bb0bc5e86d09290c>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x0002f] in <013bf3b17eee4306bb0bc5e86d09290c>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Android.Views.LayoutInflater.Inflate (System.Int32 resource, Android.Views.ViewGroup root, System.Boolean attachToRoot) [0x0005e] in <255c4ce2d8d0441c8d86df754d96e9d9>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Namespace.SimpleListItem2CheckedIndexedAdapter.GetView (System.Int32 position, Android.Views.View convertView, Android.Views.ViewGroup parent) [0x00015] in <a29411822a8f4191a468d308d15ef1cd>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at Android.Widget.BaseAdapter.n_GetView_ILandroid_view_View_Landroid_view_ViewGroup_ (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 position, System.IntPtr native_convertView, System.IntPtr native_parent) [0x0001a] in <255c4ce2d8d0441c8d86df754d96e9d9>:0 
04-03 15:19:40.154 I/MonoDroid(11339):   at (wrapper dynamic-method) System.Object:b093adad-cfc1-48f4-a34a-b2217060ac97 (intptr,intptr,int,intptr,intptr)
04-03 15:19:40.159 E/mono-rt (11339): Stacktrace:
04-03 15:19:40.159 E/mono-rt (11339): 
04-03 15:19:40.159 E/mono-rt (11339):   at <unknown> <0xffffffff>
04-03 15:19:40.159 E/mono-rt (11339):   at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jnienv_find_class (intptr,intptr&,string) <0x00007>
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Interop.JniEnvironment/Types.FindClass (string) [0x00039] in <013bf3b17eee4306bb0bc5e86d09290c>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Interop.JniType..ctor (string) [0x00007] in <013bf3b17eee4306bb0bc5e86d09290c>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Interop.JniPeerMembers/JniInstanceMethods..ctor (System.Type) [0x0006a] in <013bf3b17eee4306bb0bc5e86d09290c>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Interop.JniPeerMembers/JniInstanceMethods.GetConstructorsForType (System.Type) [0x0003a] in <013bf3b17eee4306bb0bc5e86d09290c>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Interop.JniPeerMembers/JniInstanceMethods.StartCreateInstance (string,System.Type,Java.Interop.JniArgumentValue*) [0x00042] in <013bf3b17eee4306bb0bc5e86d09290c>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Lang.Throwable..ctor (string) [0x00055] in <255c4ce2d8d0441c8d86df754d96e9d9>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Android.Runtime.JavaProxyThrowable..ctor (System.Exception) [0x00007] in <255c4ce2d8d0441c8d86df754d96e9d9>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Java.Lang.Throwable.FromException (System.Exception) [0x00023] in <255c4ce2d8d0441c8d86df754d96e9d9>:0
04-03 15:19:40.159 E/mono-rt (11339):   at Android.Runtime.AndroidEnvironment.UnhandledException (System.Exception) [0x0007e] in <255c4ce2d8d0441c8d86df754d96e9d9>:0
04-03 15:19:40.159 E/mono-rt (11339):   at (wrapper dynamic-method) object.b093adad-cfc1-48f4-a34a-b2217060ac97 (intptr,intptr,int,intptr,intptr) <0x00057>
04-03 15:19:40.159 E/mono-rt (11339):   at (wrapper native-to-managed) object.b093adad-cfc1-48f4-a34a-b2217060ac97 (intptr,intptr,int,intptr,intptr) <0x0008f>
04-03 15:19:40.160 E/mono-rt (11339): /proc/self/maps:
-----------系统开始
04-03 15:19:39.894 I/ActivityManager(1092):从显示屏0上的uid 10194启动u0{cmp=PackageName/md5ba12c8fb46bd054e4b4e431f91f82328.VehicleCheckView(有附加项)}
04-03 15:19:40.039 W/art(11339):JNI注册活动方法:尝试为md5ac3c6372e65750ca70261904a169a5a9注册0个本机方法。车辆检查片段页面
04-03 15:19:40.151 I/MonoDroid(11339):未处理的异常:
04-03 15:19:40.154 I/MonoDroid(11339):System.ArgumentException:已添加具有相同密钥的项。
04-03 15:19:40.154 I/MonoDroid(11339):位于System.ThrowHelper.ThrowArgumentException(System.ExceptionResource资源)[0x0000b]中:0
04-03 15:19:40.154 I/MonoDroid(11339):在System.Collections.Generic.Dictionary`2[TKey,TValue].Insert(TKey,TValue,System.Boolean add)[0x0008e]中:0
04-03 15:19:40.154 I/MonoDroid(11339):在System.Collections.Generic.Dictionary`2[TKey,TValue]。在:0中添加(TKey,TValue)[0x00000]
04-03 15:19:40.154 I/MonoDroid(11339):在Java.Interop.TypeManager.RegisterType(System.String Java_类,System.Type t)[0x00041]中:0
04-03 15:19:40.154 I/MonoDroid(11339):在Android.Runtime.TypeManager.RegisterType(System.String java_类,System.Type t)[0x00000]中:0
04-03 15:19:40.154 I/MonoDroid(11339):在Android.Runtime.JNIEnv.registerjnitives(System.IntPtr typeName_ptr,System.Int32 typeName_len,System.IntPtr jniClass,System.IntPtr methods_ptr,System.Int32 methods_len)[0x000de]in:0
04-03 15:19:40.154 I/MonoDroid(11339):at(包装器管理为本机)Java.Interop.NativeMethods:Java_Interop_jnienv_call_object_method_a(intptr,intptr&,intptr,intptr,intptr,Java.Interop.JniArgumentValue*)
04-03 15:19:40.154 I/MonoDroid(11339):在Java.Interop.jnienEnvironment+InstanceMethods.CallObjectMethod(Java.Interop.JniObjectReference实例,Java.Interop.JniMethodInfo方法,Java.Interop.JniArgumentValue*args)[0x0006b]in:0
04-03 15:19:40.154 I/MonoDroid(11339):在Java.Interop.jnipermembers+JniInstanceMethods.InvokeVirtualObjectMethod(System.String encodedMember,Java.Interop.IJavaPeerable self,Java.Interop.JniArgumentValue*参数)[0x0002f]in:0
04-03 15:19:40.154 I/MonoDroid(11339):在Android.Views.LayoutInflater.Inflate(System.Int32资源,Android.Views.ViewGroup根,System.Boolean附件)[0x0005e]中:0
04-03 15:19:40.154 I/MonoDroid(11339):位于Namespace.simplelistitem2checkedindexedapter.GetView(System.Int32位置,Android.Views.View转换视图,Android.Views.ViewGroup父项)[0x00015]in:0
04-03 15:19:40.154 I/MonoDroid(11339):在Android.Widget.BaseAdapter.n_GetView_ILandroid_view_view_Landroid_view_view_组(System.IntPtr jnienv,System.IntPtr native_this,System.Int32位置,System.IntPtr native_convertView,System.IntPtr native_parent)[0x0001a]in:0
04-03 15:19:40.154 I/MonoDroid(11339):at(包装器动态方法)系统。对象:b093adad-cfc1-48f4-a34a-b2217060ac97(intptr,intptr,int,intptr,intptr)
04-03 15:19:40.159 E/mono rt(11339):堆栈跟踪:
04-03 15:19:40.159 E/mono rt(11339):
04-03 15:19:40.159 E/mono rt(11339):在
04-03 15:19:40.159 E/mono rt(11339):at(包装器管理为本机)Java.Interop.NativeMethods.Java_Interop_jnienv_find_类(intptr,intptr&,string)
04-03 15:19:40.159 E/mono rt(11339):位于:0中的Java.Interop.JniEnvironment/Types.FindClass(string)[0x00039]
04-03 15:19:40.159 E/mono rt(11339):在Java.Interop.JniType..ctor(字符串)[0x00007]中:0
04-03 15:19:40.159 E/mono rt(11339):在Java.Interop.jnipermembers/JniInstanceMethods..ctor(System.Type)[0x0006a]中:0
04-03 15:19:40.159 E/mono rt(11339):在Java.Interop.jnipermembers/JniInstanceMethods.GetConstructorsForType(System.Type)[0x0003a]中:0
04-03 15:19:40.159 E/mono rt(11339):位于Java.Interop.jnipermembers/JniInstanceMethods.StartCreateInstance(字符串,System.Type,Java.Interop.JniArgumentValue*)[0x00042]in:0
04-03 15:19:40.159 E/mono rt(11339):在Java.Lang.Throwable..ctor(字符串)[0x00055]中:0
04-03 15:19:40.159 E/mono rt(11339):在Android.Runtime.JavaProxyThrowable..ctor(System.Exception)[0x00007]中:0
04-03 15:19:40.159 E/mono rt(11339):在Java.Lang.Throwable.FromException(System.Exception)[0x00023]中:0
04-03 15:19:40.159 E/mono rt(11339):在Android.Runtime.AndroidEnvironment.UnhandledException(System.Exception)[0x0007e]中:0
04-03 15:19:40.159 E/mono rt(11339):at(包装器动态方法)object.b093adad-cfc1-48f4-a34a-b2217060ac97(intptr、intptr、int、intptr、intptr)
04-03 15:19:40.159 E/mono rt(11339):at(托管的本机包装器)object.b093adad-cfc1-48f4-a34a-b2217060ac97(intptr、intptr、int、intptr、intptr)
04-03 15:19:40.16