Buck - java.lang.UnsatisfiedLinkError: couldn'

2019-05-07 15:40发布

A runtime exception is happening after executing the command buck install --run demo_app_android following this tutorial and this sample demo

Then, the following is shown in console

Installing apk on emulator-5554 (null).
[-] PROCESSING BUCK FILES...FINISHED 0.0s [100%]                 

1条回答
ら.Afraid
2楼-- · 2019-05-07 16:00

Repeating the answer from github:

You need to install Android NDK from here (version 10e) and set ANDROID_NDK_REPOSITORY to the location of the unpacked NDK (see buckconfig section for more info).

For example, if you unpack NDK to ~/tmp/ndk (so that there is a directory ~/tmp/ndk/android-ndk-r10e), you need to set ANDROID_NDK_REPOSITORY to ~/tmp/ndk.

After that delete old cache and rebuild the app:

$ buck kill && rm -rf buck-out
$ buck build demo_app_android
查看更多
登录 后发表回答