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

example project does not work #34

Open
eudorolshop opened this issue Oct 3, 2023 · 4 comments
Open

example project does not work #34

eudorolshop opened this issue Oct 3, 2023 · 4 comments

Comments

@eudorolshop
Copy link

hi, i try to run example in this project but i face this issue

Bad state: Stockfish is not ready (StockfishState.error)

flutter doctor

[✓] Flutter (Channel stable, 3.10.2, on Microsoft Windows [Version 10.0.18363.592], locale en-US)
    • Flutter version 3.10.2 on channel stable at E:\Installers\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9cd3d0d9ff (4 months ago), 2023-05-23 20:57:28 -0700
    • Engine revision 90fa3ae28f
    • Dart version 3.0.2
    • DevTools version 2.23.1

build gradle

android {
    compileSdkVersion 33
    ndkVersion "23.1.7779620"
}
dependencies {
        classpath 'com.android.tools.build:gradle:7.4.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

any workaround for this ?

thank you

@daohoangson
Copy link
Collaborator

daohoangson commented Oct 3, 2023

The init isolate encountered an error Invalid argument(s): Failed to load dynamic library 'libstockfish.so': dlopen failed: library "libstockfish.so" not found

Apparently the app cannot find the library file. I'm investigating.

Only happens in debug mode. It works in release build. Maybe related to #33...

@daohoangson
Copy link
Collaborator

Did you test on a real device or emulator? Please include the device model / AVD configuration for further troubleshooting.

@eudorolshop
Copy link
Author

The init isolate encountered an error Invalid argument(s): Failed to load dynamic library 'libstockfish.so': dlopen failed: library "libstockfish.so" not found

Apparently the app cannot find the library file. I'm investigating.

Only happens in debug mode. It works in release build. Maybe related to #33...

i got same issue when i have no ndk installed, but after install ndk , this issue has gone.

Did you test on a real device or emulator? Please include the device model / AVD configuration for further troubleshooting.

test on real device,

android-arm64 • Android 6.0.1 (API 23)

thanks for comment

@daohoangson
Copy link
Collaborator

Yeah. It should work with NDK properly installed and devices in 3 architectures: ARM v8, ARM v7 and x86_64, no x86.

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