繁体   English   中英

适用于Android的Cordova信息亭模式

[英]Cordova Kiosk mode for android

我想在信息亭模式下编码cordova应用。 我找到了这个解决方案

但是,如果我添加代码,则在创建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核心中。 这称为固定,您可以通过参数->安全性->固定来访问它。 祝好运

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM