0
我有這個Xamarin應用程序,它在調試模式(模擬器和設備)中工作得很完美。在發佈模式(設備)中,應用程序很好,直到具有投影查詢的Activity的視圖。我刪除了鏈接器配置和代碼優化。我做了一些測試和應用程序不具有基本的投影/過濾選項工作:在Xamarin發佈模式下投影失敗的Breezesharp EntityQuery
不是作品(原始查詢工程在調試模式下而不是在釋放模式)
var query = new EntityQuery<TransportReceipt>("GetAllByCustomer");
query = query.WithParameter("customerId", customerId);
作品
var query = new EntityQuery<TransportReceipt>("GetAll");
不工作
var query = new EntityQuery<TransportReceipt>("GetAll").Where(o => o.creationDate > DateTime.Now.AddMonths(-2));
不工作
var query = new EntityQuery<TransportReceipt>("GetAll").Expand(o => o.transportReceiptAttachments);
該圖像顯示設備日誌的副本。
Time Device Name Type PID Tag Message
08-10 09:47:51.520 Samsung SM-J500M Error 967 AndroidRuntime Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
... 1 more
08-10 09:47:51.520 Samsung SM-J500M Error 967 AndroidRuntime Caused by: android.runtime.JavaProxyThrowable: System.TypeInitializationException: The type initializer for 'System.Data.Services.Client.TypeSystem' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
08-10 09:47:51.520 Samsung SM-J500M Error 967 AndroidRuntime FATAL EXCEPTION: main
08-10 09:47:51.520 Samsung SM-J500M Error 967 AndroidRuntime Parameter name: key
at System.ThrowHelper.ThrowArgumentNullException (System.ExceptionArgument argument) [0x00006] in <27d869918d7c4fc687b412573db27626>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (TKey key, TValue value, System.Boolean add) [0x00008] in <27d869918d7c4fc687b412573db27626>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <27d869918d7c4fc687b412573db27626>:0
at System.Data.Services.Client.TypeSystem..cctor() [0x0061b] in <deb764142256426392349c18ced9aa88>:0
--- End of inner exception stack trace ---
at System.Data.Services.Client.ResourceBinder+PatternRules.MatchNonPrivateReadableProperty (System.Linq.Expressions.Expression e, System.Reflection.PropertyInfo& propInfo, System.Linq.Expressions.Expression& target) [0x00033] in <deb764142256426392349c18ced9aa88>:0
在您的發佈配置中啓用了Proguard嗎?並且請不要使用圖像進行錯誤,請將文本(異常/堆棧跟蹤)直接添加到您的問題中。 – SushiHangover
Hi SushiHangover。感謝您的意見。 ProGard已禁用。 –
錯誤顯示「[ArgumentNullException:值不能爲空。參數名稱:key]」。您可以使用調試器在失敗時查看數據。 –