小编B0n*_*nde的帖子

应用程序在发布模式下崩溃,而不是在调试模式下崩溃 - Xamarin Forms

我正在构建一个跨平台应用程序,我想将其发布给测试人员,但当我在发布模式下部署它时它不起作用。至于例外情况,我没有得到任何例外。正如问题中所述,它在调试模式下工作。该应用程序只是进入闪屏并崩溃。我通过测试精灵运行了原始应用程序并得到了这个异常:

    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    ... 2 more
Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.IO.FileNotFoundException: Could not load file or assembly '<Censored: Name of forms class library>.dll' or one of its dependencies. The system cannot find the file specified.
File name: '<Censored: Name of forms class library>.dll'
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) [0x00000] in :0 
  at System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) [0x00000] in :0 
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName)
  at System.Reflection.Assembly.Load …
Run Code Online (Sandbox Code Playgroud)

c# android release xamarin xamarin.forms

5
推荐指数
1
解决办法
5182
查看次数

标签 统计

android ×1

c# ×1

release ×1

xamarin ×1

xamarin.forms ×1