Recent

Author Topic: .pAppOnScreenStyle not found in AppmenuDemo  (Read 468 times)

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
.pAppOnScreenStyle not found in AppmenuDemo
« on: June 05, 2019, 08:23:50 am »
LAMW running on Jellybean Android-17 using android-ndk-r19c

AppMenuDemo cannot start.

E/AndroidRuntime(25932): java.lang.UnsatisfiedLinkError: Native method not found: com.example.appmenudemo.Controls.pAppOnScreenStyle:()I

Any Ideas?

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #1 on: June 05, 2019, 05:53:16 pm »

Goto to project folder and edit/update "AndroidManifest.xml"   

change here:

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>

to

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>

Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #2 on: June 06, 2019, 12:12:20 am »

OK.

I updated  LAMW  git ...

Now "AndroidManifest.xml" minSdkApi   will be automatically fixed to "14"

Thank you!!!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #3 on: June 06, 2019, 12:20:50 am »
I did what you asked and here are the results, failure continues:

Code: XML  [Select]
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.appmenudemo" android:versionCode="1" android:versionName="1.0">
  3.   <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
  4.   <uses-permission android:name="android.permission.ACCESS_BLUETOOTH_SHARE"/>
  5.   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  6.   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  7.   <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  8.   <uses-permission android:name="android.permission.BLUETOOTH"/>
  9.   <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
  10.   <uses-permission android:name="android.permission.CAMERA"/>
  11.   <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
  12.   <uses-permission android:name="android.permission.INTERNET"/>
  13.   <uses-permission android:name="android.permission.NFC"/>
  14.   <uses-permission android:name="android.permission.READ_CONTACTS"/>
  15.   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  16.   <uses-permission android:name="android.permission.READ_OWNER_DATA"/>
  17.   <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
  18.   <uses-permission android:name="android.permission.RESTART_PACKAGES"/>
  19.   <uses-permission android:name="android.permission.SEND_SMS"/>
  20.   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  21.   <uses-permission android:name="android.permission.WRITE_OWNER_DATA"/>
  22.   <uses-feature android:name="android.hardware.camera" android:required="false"/>
  23.   <uses-feature android:name="android.hardware.camera.flash" android:required="false"/>
  24.   <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
  25.   <uses-feature android:name="android.hardware.telephony" android:required="false"/>
  26.   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="true"/>
  27.   <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">
  28.     <activity android:name="com.example.appmenudemo.App" android:label="@string/app_name" android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|fontScale">
  29.       <intent-filter>
  30.         <action android:name="android.intent.action.MAIN"/>
  31.         <category android:name="android.intent.category.LAUNCHER"/>
  32.       </intent-filter>
  33.     </activity>
  34.   </application>
  35. </manifest>
  36.  
  37.  
  38.  

Code: Pascal  [Select]
  1.  
  2. I/ActivityManager(  549): Start proc com.example.appmenudemo for activity com.example.appmenudemo/.App: pid=2181 uid=10074 gids={50074, 3002, 3001, 1006, 3003, 1028, 1015}
  3.  
  4. V/WindowManager(  549): IWindow finishDrawing called for android.view.ViewRootImpl$W@42006c20
  5.  
  6. V/ActivityManager(  549): Binding process pid 2181 to record ProcessRecord{4200b3c0 2181:com.example.appmenudemo/u0a10074}
  7.  
  8. V/ActivityManager(  549): New death recipient com.android.server.am.ActivityManagerService$AppDeathRecipient@41f57620 for thread android.os.BinderProxy@41e604c0
  9.  
  10. V/ActivityManager(  549): New app record ProcessRecord{4200b3c0 2181:com.example.appmenudemo/u0a10074} thread=android.os.BinderProxy@41e604c0 pid=2181
  11.  
  12. V/ActivityManager(  549): ACT-Launching: ActivityRecord{41e12d28 u0 com.example.appmenudemo/.App}
  13.  
  14. V/WindowManager(  549): Changing focus from Window{41e25450 u0 com.android.launcher/com.android.launcher2.Launcher} to null
  15.  
  16. I/WindowManager(  549): Losing focus: Window{41e25450 u0 com.android.launcher/com.android.launcher2.Launcher}
  17.  
  18. V/NetworkStats(  549): setKernelCounterSet uid=10074 set=1
  19.  
  20. D/ConnectivityService(  549): onUidRulesChanged(uid=10074, uidRules=0)
  21.  
  22. E/AndroidRuntime( 2181): FATAL EXCEPTION: main
  23.  
  24. E/AndroidRuntime( 2181): java.lang.UnsatisfiedLinkError: Native method not found: com.example.appmenudemo.Controls.pAppOnScreenStyle:()I
  25.  
  26. E/AndroidRuntime( 2181):        at com.example.appmenudemo.Controls.pAppOnScreenStyle(Native Method)
  27.  
  28. E/AndroidRuntime( 2181):        at com.example.appmenudemo.Controls.jAppOnScreenStyle(Controls.java:1462)
  29.  
  30. E/AndroidRuntime( 2181):        at com.example.appmenudemo.App.onCreate(App.java:60)
  31.  
  32. E/AndroidRuntime( 2181):        at android.app.Activity.performCreate(Activity.java:5122)
  33.  
  34. E/AndroidRuntime( 2181):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1084)
  35.  
  36. E/AndroidRuntime( 2181):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
  37.  
  38. E/AndroidRuntime( 2181):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
  39.  
  40. E/AndroidRuntime( 2181):        at android.app.ActivityThread.access$600(ActivityThread.java:162)
  41.  
  42. E/AndroidRuntime( 2181):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
  43.  
  44. E/AndroidRuntime( 2181):        at android.os.Handler.dispatchMessage(Handler.java:107)
  45.  
  46. E/AndroidRuntime( 2181):        at android.os.Looper.loop(Looper.java:194)
  47.  
  48. E/AndroidRuntime( 2181):        at android.app.ActivityThread.main(ActivityThread.java:5371)
  49.  
  50. E/AndroidRuntime( 2181):        at java.lang.reflect.Method.invokeNative(Native Method)
  51.  
  52. E/AndroidRuntime( 2181):        at java.lang.reflect.Method.invoke(Method.java:525)
  53.  
  54. E/AndroidRuntime( 2181):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
  55.  
  56. E/AndroidRuntime( 2181):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
  57.  
  58. E/AndroidRuntime( 2181):        at dalvik.system.NativeStart.main(Native Method)
  59.  
  60. W/ActivityManager(  549):   Force finishing activity com.example.appmenudemo/.App
  61.  
  62.  

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #4 on: June 06, 2019, 01:17:19 am »

Hi, Robert.

Try:

Close the project

"Re-Open"  the  project ...  and  then:

"Run-->Clean up and Build..."
"Run--> [LAMW] Build ... "

[note: here, the project works  for android  4.3, 5.0.2 and 6.0.1]
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #5 on: June 06, 2019, 01:59:05 am »
Hi,
I have tried everything re-installs the works nothing works I really need an example of the submenu system working.

How come Online Package Manager  is out of date with LAMW?


Robert Gilland

  • Full Member
  • ***
  • Posts: 146
Re: .pAppOnScreenStyle not found in AppmenuDemo
« Reply #6 on: June 06, 2019, 02:47:15 am »
Okay, we have victory, downloaded latest LAMW 0.8 from Github. Managed to install it without using Online Package Manager. WORKED!