Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderScript APIs are deprecated starting in Android 12 #149

Open
Jackpate-2003 opened this issue Apr 8, 2024 · 1 comment
Open

RenderScript APIs are deprecated starting in Android 12 #149

Jackpate-2003 opened this issue Apr 8, 2024 · 1 comment

Comments

@Jackpate-2003
Copy link

Recently I upgraded my Expo version to 50 and set compileSdkVersion to version 34. After building the project, I was facing a failure in the Task :react-native-image-filter-kit:compileDebugJavaWithJavac stage, which was related to the removal of RenderScript APIs in Android 12 and later. I solved this problem by adding the following code in the android section:

buildFeatures {
         renderScript true
     }

But RenderScript support is supposed to be removed in the next version of gradle (I think version 9):

Task :react-native-image-filter-kit:compileDebugRenderscript
RenderScript APIs are deprecated starting in Android 12. RenderScript support will be removed in a future version of the Android Gradle plugin. See the follow
ing link for a guide to migrate from RenderScript: https://developer.android.com/guide/topics/renderscript/migrate

Is the repository updated for changes?

@ricardopetrere
Copy link

Just to add salt to the injury:

Version 0.8.0 explicit says "android: removed renderscript support mode", but when I'm trying to compile it on macOS, it insists on running :react-native-image-filter-kit:compileDebugRenderscript and doing RenderScript stuff (which triggers this error). On Linux it seems to work fine. Why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants