同样的2.1.1新建helloworld demo打包安卓失败
ndk;r16
sdk:androidstudio默认最新
androidstudio版本,3.4
gradle版本4.10.3
错误信息* What went wrong:
Execution failed for task ‘:libcocos2dx:lint’.
Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
…
android {
lintOptions {
abortOnError false
}
}
…
Errors found:
G:\gitfile\android_demo\cocos2d-x\cocos\platform\android\java\src\org\cocos2dx\lib\Cocos2dxHelper.java:355: Error: Missing permissions required by Vibrator.vibrate: android.permission.VIBRATE [MissingPermission]
sVibrateService.vibrate((long) (duration * 1000));
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 1m 0s
114 actionable tasks: 6 executed, 108 up-to-date




使用内置的sdk和ndk依然是报这个错误