rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.2k stars 188 forks source link

Rive incompatible with newer NDK version? #398

Closed WingToh closed 1 month ago

WingToh commented 3 months ago

It seems that Rive requires NDK version "25.1.8937393". I have a newer NDK version but Rive does not work with the newer version? image I dont encounter this problem when I remove Rive from my project.

I use the latest version NDK with "flutter.ndkVersion" in my build.gradle file: image That is, version 27.0.11718014 image

Am I missing something? Why is Rive still on an older version?

bennibau commented 3 months ago

+1 We have NDK 26.2.11394342 and cannot build Android anymore but we need rive for a new feature in the upcoming release.

JgomesAT commented 3 months ago

I have the same problem

A problem occurred configuring project ':rive_common'.

[CXX1104] NDK from ndk.dir at /Users//Library/Android/sdk/ndk/27.0.11902837 had version [27.0.11902837] which disagrees with android.ndkVersion [25.1.8937393]

bbo76 commented 2 months ago

+1

abdullah10182 commented 1 month ago

+1

HayesGordon commented 1 month ago

Android should use the latest NDK that is specified. The warning above is just an indication that Rive requires a higher NDK than the default for a new Flutter project.

But we've also gone ahead and exposed a way to override the NDK that is set in the rive_common package.

You can now specity the Android NDK version Rive should use by setting rive.ndk.version in the gradle.properties file.

For example:

rive.ndk.version=26.3.11579264