我想在信息亭模式下编码cordova应用。
我找到了this Solution。
但是,如果我添加代码,则在创建apk时会出现错误。
C:\temp\ksl\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\temp\ksl\platforms\
adlew cdvBuildDebug -b C:\temp\ksl\platforms\android\build.gradle -Dor
aemon=true"
ERROR building one of the platforms: Error: C:\temp\ksl\platforms\andr
a\build.bat: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: C:\temp\ksl\platforms\android\cordova\build.bat: Command failed
code 1
at ChildProcess.whenDone (C:\Users\ebay\AppData\Roaming\npm\node_m
dova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
没有您的代码,如果没有错误。
谢谢你的帮助
最佳答案
此功能现已包含在Android 5.0 Lollipop核心中。这称为固定,您可以通过参数->安全性->固定来访问它。
祝好运