I just upgrade from B4A 9.01 to 11.5 and for a big project I ran into the following issues.
Notes:
The app is not a B4Xpages app (and can not be converted due to size)
The app is using #AdditionalJar: com.android.support:support-v4
1) Got errors during compile due to libs not being jetified. I jetified them, and still no good.
But after exiting the IDE, then rerunning it, the libraries then update and dexed and the app fully compiled.
2) But then the compiled app crashes without any "filtered" error, so I unfiltered it and the error was "java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;".
Added "#AdditionalJar: androidx.arch.core:core-runtime" to project and this error went away.
3) Now I am getting the below filtered error and can not find any hits in the forum:
Any ideas?
Notes:
The app is not a B4Xpages app (and can not be converted due to size)
The app is using #AdditionalJar: com.android.support:support-v4
1) Got errors during compile due to libs not being jetified. I jetified them, and still no good.
But after exiting the IDE, then rerunning it, the libraries then update and dexed and the app fully compiled.
2) But then the compiled app crashes without any "filtered" error, so I unfiltered it and the error was "java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/arch/core/executor/ArchTaskExecutor;".
Added "#AdditionalJar: androidx.arch.core:core-runtime" to project and this error went away.
3) Now I am getting the below filtered error and can not find any hits in the forum:
B4X:
*** Service (starter) Create ***
19:49:13.567: Starter_Service_Created
** Activity (main) Create, isFirst = true **
19:49:13.621: Activity_Create
main_activity_create (java line: 488)
java.lang.NoSuchFieldError: No static field navdrawer_layout of type I in class Lanywheresoftware/b4a/objects/R$layout; or its superclasses (declaration of 'anywheresoftware.b4a.objects.R$layout' appears in base.apk!classes4.dex)
at de.amberhome.objects.NavigationDrawerWrapper.Initialize2(NavigationDrawerWrapper.java:74)
at com.omnisoft.voiceit.main._activity_create(main.java:488)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at com.omnisoft.voiceit.main.afterFirstLayout(main.java:105)
at com.omnisoft.voiceit.main.access$000(main.java:17)
at com.omnisoft.voiceit.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Any ideas?