First of all I'd just like to say how excited I am that Android is now supported on Edgelib. I'm very eager to get some of my Edgelib-using projects running on the Android platform.
I've tried this evening to get a HelloWorld application running .. and for the most part, give or take a fair bit of missing information in the Tutorial page (mostly about dealing with keysigning and setting up the paths properly in android.ini), it seems like its possible ..
When I try to run my application on the simulator, however, I get the following error:
- Code: Select all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
8608-04 20:31:04.518: DEBUG/dalvikvm(722): Trying to load lib /data/data/com.untitled/lib/libHelloWorld.so 0x40514550
08-04 20:31:04.518: DEBUG/dalvikvm(722): Added shared lib /data/data/com.untitled/lib/libHelloWorld.so 0x40514550
08-04 20:31:04.518: DEBUG/dalvikvm(722): No JNI_OnLoad found in /data/data/com.untitled/lib/libHelloWorld.so 0x40514550, skipping init
08-04 20:31:04.730: DEBUG/EDGE(722): resume
08-04 20:31:05.138: WARN/dalvikvm(722): JNI WARNING: 0x40517cb8 is not a valid JNI reference
08-04 20:31:05.138: WARN/dalvikvm(722): in Lnl/elements/edgelib/EdgelibView;.onNewBuffer ([IIII)V (CallVoidMethodV)
08-04 20:31:05.138: INFO/dalvikvm(722): "main" prio=5 tid=1 RUNNABLE
08-04 20:31:05.138: INFO/dalvikvm(722): | group="main" sCount=0 dsCount=0 obj=0x4001f1a8 self=0xce48
08-04 20:31:05.138: INFO/dalvikvm(722): | sysTid=722 nice=0 sched=0/0 cgrp=default handle=-1345006528
08-04 20:31:05.138: INFO/dalvikvm(722): | schedstat=( 578245055 717712519 111 )
08-04 20:31:05.138: INFO/dalvikvm(722): at nl.elements.edgelib.EdgelibView.onNewBuffer(Native Method)
08-04 20:31:05.138: INFO/dalvikvm(722): at nl.elements.edgelib.EdgelibView.checkView(EdgelibView.java:69)
08-04 20:31:05.138: INFO/dalvikvm(722): at nl.elements.edgelib.EdgelibView.onDraw(EdgelibView.java:80)
08-04 20:31:05.148: INFO/dalvikvm(722): at android.view.View.draw(View.java:6880)
08-04 20:31:05.148: INFO/dalvikvm(722): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
08-04 20:31:05.148: INFO/dalvikvm(722): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
08-04 20:31:05.148: INFO/dalvikvm(722): at android.view.View.draw(View.java:6883)
08-04 20:31:05.148: INFO/dalvikvm(722): at android.widget.FrameLayout.draw(FrameLayout.java:357)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.ViewGroup.drawChild(ViewGroup.java:1646)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1373)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.View.draw(View.java:6883)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.widget.FrameLayout.draw(FrameLayout.java:357)
08-04 20:31:05.158: INFO/dalvikvm(722): at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1862)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.ViewRoot.draw(ViewRoot.java:1522)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.ViewRoot.performTraversals(ViewRoot.java:1258)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
08-04 20:31:05.158: INFO/dalvikvm(722): at android.os.Handler.dispatchMessage(Handler.java:99)
08-04 20:31:05.169: INFO/dalvikvm(722): at android.os.Looper.loop(Looper.java:123)
08-04 20:31:05.169: INFO/dalvikvm(722): at android.app.ActivityThread.main(ActivityThread.java:3647)
08-04 20:31:05.169: INFO/dalvikvm(722): at java.lang.reflect.Method.invokeNative(Native Method)
08-04 20:31:05.169: INFO/dalvikvm(722): at java.lang.reflect.Method.invoke(Method.java:507)
08-04 20:31:05.169: INFO/dalvikvm(722): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
08-04 20:31:05.169: INFO/dalvikvm(722): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
08-04 20:31:05.169: INFO/dalvikvm(722): at dalvik.system.NativeStart.main(Native Method)
08-04 20:31:05.169: ERROR/dalvikvm(722): VM aborting
08-04 20:31:05.278: INFO/DEBUG(30): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
08-04 20:31:05.278: INFO/DEBUG(30): Build fingerprint: 'generic/sdk/generic:2.3.1/GSI11/93351:eng/test-keys'
08-04 20:31:05.289: INFO/DEBUG(30): pid: 722, tid: 722 >>> com.untitled <<<
08-04 20:31:05.289: INFO/DEBUG(30): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
08-04 20:31:05.289: INFO/DEBUG(30): r0 fffffebc r1 deadd00d r2 00000026 r3 00000000
08-04 20:31:05.289: INFO/DEBUG(30): r4 81da45c8 r5 81d866e8 r6 81d866e8 r7 40517cb8
08-04 20:31:05.289: INFO/DEBUG(30): r8 beab33c8 r9 418fc66c 10 00000000 fp 41ad9cec
08-04 20:31:05.289: INFO/DEBUG(30): ip 81da4728 sp beab3300 lr afd19375 pc 81d45a02 cpsr 20000030
08-04 20:31:05.499: INFO/DEBUG(30): #00 pc 00045a02 /system/lib/libdvm.so
08-04 20:31:05.499: INFO/DEBUG(30): #01 pc 000376fc /system/lib/libdvm.so
08-04 20:31:05.508: INFO/DEBUG(30): #02 pc 000386a0 /system/lib/libdvm.so
08-04 20:31:05.508: INFO/DEBUG(30): #03 pc 000386d2 /system/lib/libdvm.so
08-04 20:31:05.508: INFO/DEBUG(30): #04 pc 0003fa36 /system/lib/libdvm.so
08-04 20:31:05.508: INFO/DEBUG(30): #05 pc 00051762 /data/data/com.untitled/lib/libHelloWorld.so
08-04 20:31:05.508: INFO/DEBUG(30): #06 pc 00051820 /data/data/com.untitled/lib/libHelloWorld.so
08-04 20:31:05.518: INFO/DEBUG(30): #07 pc 00051e16 /data/data/com.untitled/lib/libHelloWorld.so
08-04 20:31:05.518: INFO/DEBUG(30): #08 pc 00017d34 /system/lib/libdvm.so
08-04 20:31:05.518: INFO/DEBUG(30): code around pc:
08-04 20:31:05.518: INFO/DEBUG(30): 81d459e0 447a4479 ed0cf7d1 20004c09 ee34f7d1
08-04 20:31:05.518: INFO/DEBUG(30): 81d459f0 447c4808 6bdb5823 d0002b00 49064798
08-04 20:31:05.531: INFO/DEBUG(30): 81d45a00 700a2226 eea0f7d1 0004361f 000451dd
08-04 20:31:05.531: INFO/DEBUG(30): 81d45a10 0005ebd2 fffffebc deadd00d b510b40e
08-04 20:31:05.531: INFO/DEBUG(30): 81d45a20 4c0a4b09 447bb083 aa05591b 6b5bca02
08-04 20:31:05.531: INFO/DEBUG(30): code around lr:
08-04 20:31:05.539: INFO/DEBUG(30): afd19354 b0834a0d 589c447b 26009001 686768a5
08-04 20:31:05.539: INFO/DEBUG(30): afd19364 220ce008 2b005eab 1c28d003 47889901
08-04 20:31:05.539: INFO/DEBUG(30): afd19374 35544306 d5f43f01 2c006824 b003d1ee
08-04 20:31:05.539: INFO/DEBUG(30): afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0
08-04 20:31:05.539: INFO/DEBUG(30): afd19394 43551c3d a904b087 1c16ac01 604d9004
08-04 20:31:05.539: INFO/DEBUG(30): stack:
08-04 20:31:05.539: INFO/DEBUG(30): beab32c0 00000015
08-04 20:31:05.548: INFO/DEBUG(30): beab32c4 afd18407 /system/lib/libc.so
08-04 20:31:05.548: INFO/DEBUG(30): beab32c8 afd4270c /system/lib/libc.so
08-04 20:31:05.548: INFO/DEBUG(30): beab32cc afd426b8 /system/lib/libc.so
08-04 20:31:05.548: INFO/DEBUG(30): beab32d0 00000000
08-04 20:31:05.548: INFO/DEBUG(30): beab32d4 afd19375 /system/lib/libc.so
08-04 20:31:05.548: INFO/DEBUG(30): beab32d8 0000ce48 [heap]
08-04 20:31:05.548: INFO/DEBUG(30): beab32dc afd183d9 /system/lib/libc.so
08-04 20:31:05.548: INFO/DEBUG(30): beab32e0 40517cb8 /dev/ashmem/dalvik-heap (deleted)
08-04 20:31:05.548: INFO/DEBUG(30): beab32e4 0005ebd2 [heap]
08-04 20:31:05.558: INFO/DEBUG(30): beab32e8 81d866e8 /system/lib/libdvm.so
08-04 20:31:05.558: INFO/DEBUG(30): beab32ec 81d866e8 /system/lib/libdvm.so
08-04 20:31:05.558: INFO/DEBUG(30): beab32f0 40517cb8 /dev/ashmem/dalvik-heap (deleted)
08-04 20:31:05.558: INFO/DEBUG(30): beab32f4 afd18437 /system/lib/libc.so
08-04 20:31:05.558: INFO/DEBUG(30): beab32f8 df002777
08-04 20:31:05.568: INFO/DEBUG(30): beab32fc e3a070ad
08-04 20:31:05.568: INFO/DEBUG(30): #00 beab3300 40517cb8 /dev/ashmem/dalvik-heap (deleted)
08-04 20:31:05.568: INFO/DEBUG(30): beab3304 81d37701 /system/lib/libdvm.so
08-04 20:31:05.568: INFO/DEBUG(30): #01 beab3308 40517cb8 /dev/ashmem/dalvik-heap (deleted)
08-04 20:31:05.568: INFO/DEBUG(30): beab330c 81d386a5 /system/lib/libdvm.so
08-04 20:31:07.398: DEBUG/Zygote(32): Process 722 terminated by signal (11)86 lines; 4 keywds; 712 nums; 1031 ops; 3 strs; 0 coms Syntactic Coloring v0.4 - Dan East
The bit I think is causing the problem is this:
- Code: Select all
108-04 20:31:04.518: DEBUG/dalvikvm(722): No JNI_OnLoad found in /data/data/com.untitled/lib/libHelloWorld.so 0x40514550, skipping init1 lines; 0 keywds; 8 nums; 12 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East
What does this mean - have I signed the wrong .apk file perhaps? I'm using the one that was created for me by EdgeBuilder in c:\projects\helloworld\release\Android\HelloWorld-unsigned.apk, and doing the standard keysigning steps mentioned in the Android documentation (1. Generate keys with keytool, 2. Sign the .apk with jarsigner, 3. using zipalign and creating "HelloWorld.apk") ..
Anyone have some clues/hints for me? Much thanks in advance for any assistance you can provide, and much thanks to the creators of EdgeLib for getting us this far! I think I'm pretty close here ..
