Android Question HELP: Maven artifact not found: androidx.annotation/annotation-experimental

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
help...
just updated the SDK through SDK Manager
all went ok
now when trying to run a project in debug mode I get the following
Maven artifact not found: androidx.annotation/annotation-experimental

what should i do ?

my B4A version is 10.50
SDK manager version is 3.71

it's kind of urgent as it is in the middle of work...

thanks
 

DonManfred

Expert
Licensed User
Longtime User
Install the missing sdk with the sdkmanager. Search for "experimental"
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
thanks
got it
now i have more problems


B4A Version: 10.50
Parsing code. (0.10s)
Java Version: 8
Building folders structure. (0.01s)
Compiling code. (0.17s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. Error
c:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.1.0\unpacked-savedstate-1.1.0\res\values\values.xml:3: error: Found tag id where item is expected
c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.3.0\unpacked-lifecycle-viewmodel-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected
c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.3.0\unpacked-lifecycle-runtime-2.3.0\res\values\values.xml:3: error: Found tag id where item is expected

this was only after the SDK update
before that all went smoothly
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
don't update, only do it when you are free.
It is my rule.

looks like the solution to your problem is reinstall the sdk and don't update it

Edit: I found this:
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
don't update, only do it when you are free.
It is my rule.

looks like the solution to your problem is reinstall the sdk and don't update it

Edit: I found this:

thanks,
can you please explain?
how do i install the sdk alone ?
now that i have gone through this all - how do i fix it ?
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
thanks,
can you please explain?
how do i install the sdk alone ?
now that i have gone through this all - how do i fix it ?
follow the installation instructions:
don't update the sdk,
and if you still have your first error:
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
OK
reinstalled and now it is working like charm
many many thanks !!!
just one last question:
is the newly installed SDK supports 29 and 30 as google demands ?
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Oops
Anything i need to do other than change the target in the manifest?
I changed it to 30 but the app crashes now
If i return to 28 it works perfectly
Any idea?
Thanks
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Ok
I'll try 29
When the app crashes there is no log
It just close down
I'll go for the 29 and try
Once again thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I changed it to 30 but the app crashes now
It is a great idea to HIDE the full Error.

There is NO SUCH THING like no log. If a App crashes you must be able to see this in the LOG. Maybe the unfiltered Log.

Think over if this can help us helping you....
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
It is a great idea to HIDE the full Error.

There is NO SUCH THING like no log. If a App crashes you must be able to see this in the LOG. Maybe the unfiltered Log.

Think over if this can help us helping you....

oh, i'm not hiding anything
it is not shown on the phone
when i have it as a log to send to the phone vendor i get something on rp.GetSafeDirDefaultExternal("")
why on 28 it is ok and 29 crash ?
i'm making some modifications and see what will happen
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
The app still crash
This is what i get on the phone

java.lang.SecurityException: getDeviceId: The user 10790 does not meet the requirements to access device identifiers.
at android.os.Parcel.createException(Parcel.java:2074)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:10389)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:1629)
at anywheresoftware.b4a.phone.Phone$PhoneId.GetDeviceId(Phone.java:441)
at arkom.webeft.android.main$ResumableSub_GetLicense.resume(main.java:5102)
at arkom.webeft.android.main._getlicense(main.java:5002)
at arkom.webeft.android.main$ResumableSub_Activity_Resume.resume(main.java:1318)
at arkom.webeft.android.main._activity_resume(main.java:1229)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at arkom.webeft.android.main.afterFirstLayout(main.java:111)
at arkom.webeft.android.main.access$000(main.java:17)
at arkom.webeft.android.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7560)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
: The user 10790 does not meet the requirements to access device identifiers

Additional changes in Android 10 that are not related to the targetSdkVersion value:


PD: You should always test your app in Releasemode. In debugmode some restrictions are off.
 
Last edited:
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User



PD: You should always test your app in Releasemode. In debugmode some restrictions are off.

i'm afraid i'm lost...
not sure i got what you mean

who is user 10790 ?
who created it ? who owns it ?

i'm not using a service, it is a simple application

why does it work perfectly on 28 and crash on 29 ?
what am i missing ? (looks like a lot...)

google requires 29 so i must understand how to change and what to change so i can go on 29

anything you can help ?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
that's very odd
No it's not. From post #16 above
Additional changes in Android 10 that are not related to the targetSdkVersion value:
...
Most of the device unique ids are not exposed.
You seem to be trying to obtain an ID that is no longer available.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
thanks
i don't think i do so anymore
i used to read imei but long ago i changed it
can you tell the function name that causes the error ?
 
Upvote 0
Top