Recent

Author Topic: I've managed to build AndroidLCL sample on Windows, but...  (Read 5751 times)

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
I've managed to build AndroidLCL sample on Windows, but...
« on: November 04, 2011, 02:29:46 pm »
the application crashes on my device (Xperia mini pro). I use Android-10 as ant target as I only install that SDK version (corresponds to Android 2.3.3, which is my device's Android version). Since I'm very new in this platform, I don't really know what to do. Here's what I can get from adb logcat:
Quote
[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pascal.androidlcl/.AndroidLCLTest } from pid 19267
D/PhoneWindow(19267): couldn't save which view has focus because the focused view com.jiubang.ggheart.apps.desks.appfunc.XViewFrame@2b1d7230 has no id.
I/ActivityManager(  245): Start proc com.pascal.androidlcl for activity com.pascal.androidlcl/.AndroidLCLTest: pid=20425 uid=10152 gids={}
D/dalvikvm(  116): GC_EXPLICIT freed 11K, 52% free 2590K/5379K, external 743K/1036K, paused 61ms
V/AndroidPipesComm:(20425): Executing application /data/data/com.pascal.androidlcl/lib/libandroidlcltest.so copied to /data/data/com.pascal.androidlcl/files/androidlcltest
D/dalvikvm(  116): GC_EXPLICIT freed <1K, 52% free 2590K/5379K, external 743K/1036K, paused 83ms
D/dalvikvm(  116): GC_EXPLICIT freed <1K, 52% free 2590K/5379K, external 743K/1036K, paused 50ms
V/AndroidPipesComm:(20425): WaitForPascalMessage(amkActivityCallback, ams_ActivityCallback_onCreateFinished)
V/AndroidPipesComm:(20425): START WaitForPascalMessage AExpectedMessageType=0 AExpectedMessageSubtype=1001
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TAbsoluteLayout_Create_0
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TScrollView_Create_0
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TViewGroup_addView_3
V/AndroidPipesComm:(20425): amkJavaLangCall
V/AndroidPipesComm:(20425): amkJavaLang_New_String
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TActivity_setTitle_0
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TButton_Create_0
V/AndroidPipesComm:(20425): amkJavaLangCall
V/AndroidPipesComm:(20425): amkJavaLang_New_String
V/AndroidPipesComm:(20425): amkUICommand
V/AndroidPipesComm:(20425): amkUI_TTextView_setText_2
D/AndroidRuntime(20425): Shutting down VM
W/dalvikvm(20425): threadid=1: thread exiting with uncaught exception (group=0x2aac8560)
E/AndroidRuntime(20425): FATAL EXCEPTION: main
E/AndroidRuntime(20425): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pascal.androidlcl/com.pascal.androidlcl.AndroidLCLTest}: java.lang.ClassCastException: android.widget.AbsoluteLayout
E/AndroidRuntime(20425):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1659)
E/AndroidRuntime(20425):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
E/AndroidRuntime(20425):        at android.app.ActivityThread.access$1500(ActivityThread.java:121)
E/AndroidRuntime(20425):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
E/AndroidRuntime(20425):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(20425):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(20425):        at android.app.ActivityThread.main(ActivityThread.java:3701)
E/AndroidRuntime(20425):        at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(20425):        at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(20425):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/AndroidRuntime(20425):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
E/AndroidRuntime(20425):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(20425): Caused by: java.lang.ClassCastException: android.widget.AbsoluteLayout
E/AndroidRuntime(20425):        at com.pascal.androidlcl.AndroidAll.ProcessCommand(AndroidAll.java:675)
E/AndroidRuntime(20425):        at com.pascal.androidlcl.AndroidPipesComm.WaitAndProcessPascalMessage(AndroidPipesComm.java:133)
E/AndroidRuntime(20425):        at com.pascal.androidlcl.AndroidPipesComm.WaitForPascalMessage(AndroidPipesComm.java:101)
E/AndroidRuntime(20425):        at com.pascal.androidlcl.AndroidLCLTest.onCreate(AndroidLCLTest.java:72)
E/AndroidRuntime(20425):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(20425):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
E/AndroidRuntime(20425):        ... 11 more
W/ActivityManager(  245):   Force finishing activity com.pascal.androidlcl/.AndroidLCLTest
W/ActivityManager(  245): Activity pause timeout for HistoryRecord{2b5f1418 com.pascal.androidlcl/.AndroidLCLTest}
The exception seems clear, and something I haven't seen in about 1 year :P
Only the difference is that now I have no idea how to fix...

Btw, I need to rename default.properties->project.properties and build.properties->ant.properties, otherwise ant would complain about those files missing.
« Last Edit: November 04, 2011, 02:33:11 pm by Leledumbo »

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: I've managed to build AndroidLCL sample on Windows, but...
« Reply #1 on: February 19, 2012, 09:53:48 am »
You are using the old LCL Android interface, correct? Don't use it anymore, migrate to LCL-CustomDrawn-Android

 

TinyPortal © 2005-2018