Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #1 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
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 Feb 12, 2021 #2 Install the missing sdk with the sdkmanager. Search for "experimental" Upvote 0
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #3 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
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
f0raster0 Well-Known Member Licensed User Longtime User Feb 12, 2021 #4 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: Found tag id where item is expected Error 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... www.b4x.com Upvote 0
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: Found tag id where item is expected Error 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... www.b4x.com
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #5 f0raster0 said: 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: Found tag id where item is expected Error 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... www.b4x.com Click to expand... 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 said: 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: Found tag id where item is expected Error 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... www.b4x.com Click to expand... 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 ?
f0raster0 Well-Known Member Licensed User Longtime User Feb 12, 2021 #6 Zeev Goldstein said: 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 ? Click to expand... follow the installation instructions: B4A – The simple way to develop native Android apps 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: Maven artifact not found androidx.annotation/annotation-experimental 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 www.b4x.com Upvote 0
Zeev Goldstein said: 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 ? Click to expand... follow the installation instructions: B4A – The simple way to develop native Android apps 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: Maven artifact not found androidx.annotation/annotation-experimental 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 www.b4x.com
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #7 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
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 ?
agraham Expert Licensed User Longtime User Feb 12, 2021 #8 Zeev Goldstein said: is the newly installed SDK supports 29 and 30 as google demands ? Click to expand... Yes - SDK 30 as you can see in the platforms folder. Upvote 0
Zeev Goldstein said: is the newly installed SDK supports 29 and 30 as google demands ? Click to expand... Yes - SDK 30 as you can see in the platforms folder.
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #9 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
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
agraham Expert Licensed User Longtime User Feb 12, 2021 #10 Zeev Goldstein said: I changed it to 30 but the app crashes now Click to expand... That's not much help. Logs? Anyway Erel advises using SDK 29 for now as that is what the Play Store requires. Upvote 0
Zeev Goldstein said: I changed it to 30 but the app crashes now Click to expand... That's not much help. Logs? Anyway Erel advises using SDK 29 for now as that is what the Play Store requires.
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #11 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
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
DonManfred Expert Licensed User Longtime User Feb 12, 2021 #12 Zeev Goldstein said: I changed it to 30 but the app crashes now Click to expand... 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 said: I changed it to 30 but the app crashes now Click to expand... 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....
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #13 DonManfred said: 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.... Click to expand... 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
DonManfred said: 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.... Click to expand... 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
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #14 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
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)
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #15 why is it working perfectly on debug ? Upvote 0
DonManfred Expert Licensed User Longtime User Feb 12, 2021 #16 Zeev Goldstein said: : The user 10790 does not meet the requirements to access device identifiers Click to expand... android.jar / targetSdkVersion / minSdkVersion 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: StartActivity from a service will not work if there is no visible activity. As a workaround you can request the special "draw over apps" permission: https://www.b4x.com/android/forum/threads/draw-on-top-of-other-apps-permission.90513/ It will allow StartActivity to work. Most of the device unique ids are not exposed. Two are available: Advertising id: https://www.b4x.com/android/forum/threads/101050/#content Phone.GetSettings ("android_id") - https://www.b4x.com/android/forum/threads/get-unique-id-for-user.124396/#content Click to expand... PD: You should always test your app in Releasemode. In debugmode some restrictions are off. Last edited: Feb 12, 2021 Upvote 0
Zeev Goldstein said: : The user 10790 does not meet the requirements to access device identifiers Click to expand... android.jar / targetSdkVersion / minSdkVersion 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: StartActivity from a service will not work if there is no visible activity. As a workaround you can request the special "draw over apps" permission: https://www.b4x.com/android/forum/threads/draw-on-top-of-other-apps-permission.90513/ It will allow StartActivity to work. Most of the device unique ids are not exposed. Two are available: Advertising id: https://www.b4x.com/android/forum/threads/101050/#content Phone.GetSettings ("android_id") - https://www.b4x.com/android/forum/threads/get-unique-id-for-user.124396/#content Click to expand... PD: You should always test your app in Releasemode. In debugmode some restrictions are off.
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #17 DonManfred said: android.jar / targetSdkVersion / minSdkVersion 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. Click to expand... 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
DonManfred said: android.jar / targetSdkVersion / minSdkVersion 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. Click to expand... 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 ?
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #18 that's very odd on a device with android 9 - it works on a device with android 10 - it crashes Upvote 0
agraham Expert Licensed User Longtime User Feb 12, 2021 #19 Zeev Goldstein said: that's very odd Click to expand... 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. Click to expand... You seem to be trying to obtain an ID that is no longer available. Upvote 0
Zeev Goldstein said: that's very odd Click to expand... 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. Click to expand... You seem to be trying to obtain an ID that is no longer available.
Zeev Goldstein Well-Known Member Licensed User Longtime User Feb 12, 2021 #20 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
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 ?