重现该问题的步骤?
预期的输出?
完成脚本后,可以根据https://skia.org/user/sample/viewer中提到的文档在out_dir / viewer.apk中找到APK。
实际输出
相反,控制台上显示的错误为:
$ platform_tools/android/bin/android_build_app -C out/arm64 viewer
> Configure project :viewer
WARNING: The specified Android SDK Build Tools version (22.0.1) is ignored, as it is below the minimum supported version (28.0.2) for Android Gradle Plugin 3.2.0.
Android SDK Build Tools 28.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '22.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Task :viewer:arm64Debug_BuildSkiaLib FAILED
ninja: Entering directory `/disk2/workspace/android-studio-office/skia/out/arm64'
ninja: error: unknown target 'libviewer'
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':viewer:arm64Debug_BuildSkiaLib'.
> Process 'command '/disk2/workspace/android-studio-office/depot_tools/ninja'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
16 actionable tasks: 1 executed, 15 up-to-date
Command '['./apps/gradlew', ':viewer:assemblearm64debug', '-papps/viewer', '-Parm64.out.dir=/disk2/workspace/android-studio-office/skia/out/arm64', '--daemon']' returned non-zero exit status 1
gradle build failed
我正在使用https://skia.googlesource.com/skia/+/master/include/core/SkMilestone.h的产品版本74
操作系统版本:Ubuntu 17.10