tuhatinhvn Active Member Licensed User Longtime User Oct 18, 2020 #1 Some LIbrary we need renderscript defaultConfig { minSdkVersion 21 targetSdkVersion 29 ...... renderscriptTargetApi 21 renderscriptSupportModeEnabled true } In android renderscript (package : android.renderscript.RenderScript), we can use this script to active it : https://www.b4x.com/android/forum/t...ntrinsics-function-example.32511/#post-385474 Because i think B4A use build-tools 27.0.1 as default But now with AndroidX we can use it because package name is "androidx.renderscript.RenderScript" , so this error Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.renderscript.RenderScript" on path: DexPathList[[zip file "/data/app/b4a.example.demoapp-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.demoapp-1/lib/x86, /vendor/lib, /system/lib]] I check found build-tools 29.0.3 use androidx renderscript, but i can not change build tools into 29.0.3 (try rename folder but not work) SOLVED: Copy LIB to add-on lib worked Last edited: Oct 18, 2020
Some LIbrary we need renderscript defaultConfig { minSdkVersion 21 targetSdkVersion 29 ...... renderscriptTargetApi 21 renderscriptSupportModeEnabled true } In android renderscript (package : android.renderscript.RenderScript), we can use this script to active it : https://www.b4x.com/android/forum/t...ntrinsics-function-example.32511/#post-385474 Because i think B4A use build-tools 27.0.1 as default But now with AndroidX we can use it because package name is "androidx.renderscript.RenderScript" , so this error Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.renderscript.RenderScript" on path: DexPathList[[zip file "/data/app/b4a.example.demoapp-1/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example.demoapp-1/lib/x86, /vendor/lib, /system/lib]] I check found build-tools 29.0.3 use androidx renderscript, but i can not change build tools into 29.0.3 (try rename folder but not work) SOLVED: Copy LIB to add-on lib worked