Android Question (Solved) Testing TargetSdkVersion=34

LGS

Member
Licensed User
Longtime User
Hello everyone

Here I present another error that occurs when changing the manifest file (TargetSdkVersion 33 to 34)
Testing with Android 14

Logs:
java.lang.SecurityException: b4a.example: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
    at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
    at android.os.Parcel.createException(Parcel.java:3041)
    at android.os.Parcel.readException(Parcel.java:3024)
    at android.os.Parcel.readException(Parcel.java:2966)
    at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:6203)
    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1863)
    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1803)
    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1791)
    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:766)
    at anywheresoftware.b4a.phone.PhoneEvents.Initialize(PhoneEvents.java:303)
    at b4a.example.b4xmainpage._b4xpage_created(b4xmainpage.java:41)
    at b4a.example.b4xmainpage.callSub(b4xmainpage.java:197)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1098)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:1069)
    at b4a.example.b4xpagesmanager._vvvvvvvvvvvv0(b4xpagesmanager.java:528)
    at b4a.example.b4xpagesmanager._vvv3(b4xpagesmanager.java:865)
    at b4a.example.b4xpagesmanager._v0(b4xpagesmanager.java:199)
    at b4a.example.b4xpagesmanager._vv1(b4xpagesmanager.java:206)
    at b4a.example.b4xpagesmanager._initialize(b4xpagesmanager.java:716)
    at b4a.example.main._activity_create(main.java:366)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
    at b4a.example.main.afterFirstLayout(main.java:105)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:958)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:224)
    at android.os.Looper.loop(Looper.java:318)
    at android.app.ActivityThread.main(ActivityThread.java:8755)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

In this example the message is sent if TargetSdkVersion = 33, but changing it to 34 shows the mentioned error

I attach a small program with the example
 

Attachments

  • API 34.zip
    10.3 KB · Views: 45

Shelby

Well-Known Member
Licensed User
Longtime User
Not sure if this will suffice as a solution for you, but I found a workaround for this error problem. I have successfully uploaded an app to Google Play and used the upper limit on targetSdkVersion to be 34. That has satisfied the Googlebots for now. Then with my daily or whenever I happen to compile the same app on my IDE, I change my upper level in the Manifest Folder to 33 so the log won't give me the error message.
I'm also using Android 14 as you stated.
 
Upvote 0

LGS

Member
Licensed User
Longtime User
Hello Erel

Updated to B4A v130 Beta and everything is ok
I just had to install androidx.biometric_biometric (Google Maven) in the Sdk Manager
By the way, this recommends updating some packages and I would like to know if it is necessary to install any of them.

1721691998096.png
 

Attachments

  • 1721691858333.png
    1721691858333.png
    30.2 KB · Views: 44
Upvote 0
Top