Android Question B4A 9.30 and compiling issue

Status
Not open for further replies.

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

I was away from B4A for quite some time. Today, I upgraded my B4A version from 9.00 to 9.30
After upgrading when I try to compile one of my existing app, I get the following error message

Generating R file. (2.43s)
Compiling generated Java code. Error
B4A line: 264
nb.SetStyle(StyleBigPic)
javac 1.8.0_191
src\com\myappname\publicapp\fcmnotifications.java:202: error: package androidx.core.app.NotificationCompat does not exist
_nb.SetStyle((androidx.core.app.NotificationCompat.Style)(_stylebigpic.getObject()));
^

Please note that this was compiling perfectly fine in B4A version 9.0

I read few topics on AndroidX and Jetifier and Jetified whatever listed. Everything got jetified successfully, except android-support-v4.jar

In the case of android-support-v4.jar, when I try to Jetify, I am getting the following error screen


Any help will be appreciated
 

Anser

Well-Known Member
Licensed User
Longtime User
I was able to solve the compilation issue by updating Android SDK's, unfortunately, the Jetify problem of android-support-v4.jar is still there.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
Thank you for the hint.
Hope other 3rd party libraries are not depended on that jar.

So far, in my case MSMaterialDrawer and Marqueeview are failing in API 28
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Hope other 3rd party libraries are not depended on that jar
usually you just need to reference the maven artifact. Can be done sometime with editing the XML file (remove the incorrect/deprecated reference and add a reference to the correct maven artifact.)

If you encounter any new problem; start a new thread for it.
 
Upvote 0
Status
Not open for further replies.
Top