webf icon indicating copy to clipboard operation
webf copied to clipboard

v0.16.0 android(npm run build:bridge:android)编译问题记录

Open Tlanglord opened this issue 1 year ago • 0 comments

Affected version

v0.16.0

Flutter versions

3.19.0

No same issues found.

  • [X] Yes, I search all issues but not found.

Steps to Reproduce

  1. 本地ndk path 配置问题

报错:Could not find toolchain file:

Could not find toolchain file: /***/Library/android/sdk/ndk/build/cmake/android.toolchain.cmake

原因:本地机器ndk配置类似

path=/***/Library/android/sdk/ndk

建议检测ndk时可以判断下是否带目标版本

  1. cmake add_compile_definitions问题

报错:add_compile_definitions

原因: cmake v3.12 新增

建议修改https://github.com/openwebf/webf/blob/main/.github/CONTRIBUTING.md#openwebf-contributing-guide , CMake:v3.120 or later

Code example

image image

Expected results

  1. 修改ndk检测方式
  2. 更新CMake版本

Actual results

更新CMake版本,修改文档

Tlanglord avatar Jul 15 '24 10:07 Tlanglord