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...
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
Hi everyone i have this error please help me if you know. B4A Version: 10.50 Parsing code. (0.00s) Java Version: 11 Building folders structure. (0.08s) Compiling code. (0.05s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file...
Hi everyone i have this error please help me if you know. B4A Version: 10.50 Parsing code. (0.00s) Java Version: 11 Building folders structure. (0.08s) Compiling code. (0.05s) Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Generating R file...
B4A includes all the features needed to quickly develop any type of Android app. B4A is used by tens of thousands of developers from all over the world, including companies such as NASA, HP, IBM and others.
www.b4x.com
don't update the sdk,
and if you still have your first error:
While opening my existing project on B4A 10.2, I am getting the following error on opening. I had already install B4A freshly with all new downloaded resources, updated android through sdk manager. But the problem persist. Any help will be appreciable. Thank you
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 ?
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
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
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)
There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this...
www.b4x.com
Additional changes in Android 10 that are not related to the targetSdkVersion value:
There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this...
www.b4x.com
PD: You should always test your app in Releasemode. In debugmode some restrictions are off.