簡體   English   中英

Android Tableview在Titan Appcelerator SDK 7.5.0上崩潰

[英]Android tableview crashing on titanium Appcelerator SDK 7.5.0

當我單擊具有自定義表格行的表格視圖時,僅在Android上出現以下錯誤。 有人可以幫我理解嗎?

TiExceptionHandler:(主)[5645,45992]嘗試在空對象引用[ERROR]上調用虛擬方法'void org.appcelerator.titanium.view.TiUIView.registerForTouch()':TiExceptionHandler:[ERROR]:TiExceptionHandler:org .appcelerator.titanium.proxy.TiViewProxy.h andleGetView(TiViewProxy.java:594)[ERROR]:TiExceptionHandler:org.appcelerator.titanium.proxy.TiViewProxy.h andleMessage(TiViewProxy.java:270)[ERROR]:TiExceptionHandler:android .os.Handler.dispatchMessage(Handler.ja va:102)[ERROR]:TiExceptionHandler:android.os.Looper.loop(Looper.java:193)[ERROR]:TiExceptionHandler:android.app.ActivityThread.main(ActivityThrea d .java:6669)[ERROR]:TiExceptionHandler:java.lang.reflect.Method.invoke(本機方法)[ERROR]:TiExceptionHandler:com.android.internal.os.RuntimeInit $ MethodAnd ArgsCaller.run(RuntimeInit.java:493 )[錯誤]:TiExceptionHandler:com.android.internal.os.ZygoteInit.main(Zygot eInit.java:858)

好吧,我剛剛刪除了console.log(JSON.stringify(e)); 在代碼,它的工作。

UI View和UITableView是屬於Apple iOS SDK的類,因此這些對象永遠無法使用Android實例化,我印象深刻的是Titanium沒有檢測到錯誤的兼容性。

在android中,您應該使用ListView或RecyclerView,Android包含的最相似名稱對象是TableLayout,但很少使用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM