我遵循here给出的官方指南。一直到./b2g-bin -profile ./gaia/profile -start-debugger-server 6000
。模拟器窗口启动,显示KaiOS徽标,但不会再继续了。
然后,我尝试使用sudo
。这似乎行得通,因为现在模拟器一直显示时钟。
从Firefox启动WebIDE,并添加了远程运行时。然后创建一个HelloWorld应用,但“安装并运行”按钮被禁用。
我哪里出错了?
这是终端输出,如果有帮助的话:
(b2g:3992): Gtk-WARNING **: Theme parsing error: gtk-contained.css:27:19: Missing name of pseudo-class
(b2g:3992): Gtk-WARNING **: Theme parsing error: gtk-contained.css:2780:55: Not a valid image
JavaScript error: resource://gre/modules/AddonManager.jsm, line 410: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
1532463036227 Marionette INFO Listening on port 2828
--*-- KillSwitchMain: No proper libcutils binding, aborting.
PermissionsTable.jsm: expandPermissions: Invalid access for permission storage: readwrite
PermissionsTable.jsm: expandPermissions: Unknown Permission: device-storage:audiosPermissionsTable.jsm: expandPermissions: Invalid access for permission storage: readwrite
PermissionsInstaller.jsm: 'device-storage:audios' is not a valid Webapps permission name.###################################### forms.js loaded
###################################### BrowserElementCopyPaste.js loaded
############################### browserElementPanningAPZDisabled.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
Could not register invalid system message entry for app://calculator.gaiamobile.org/manifest.webapp
[]
Could not register invalid system message entry for app://todo.gaiamobile.org/manifest.webapp
[]
Could not register invalid system message entry for app://contact.gaiamobile.org/manifest.webapp
[]
Could not register invalid system message entry for app://geoloc.gaiamobile.org/manifest.webapp
[]
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-requestconfirmation"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-requestpasskey"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-requestpincode"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-authorize"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-cancel"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-pairedstatuschanged"
Could not register invalid system message entry for app://engmode.gaiamobile.org/manifest.webapp
"bluetooth-hfp-status-changed"
Opening debugger server on 6000
JavaScript error: app://system.gaiamobile.org/js/navigation_map.js, line 49: ReferenceError: NT_DOM_HELPER is not defined
XXX FIXME : Dispatch a mozChromeEvent: system-first-paint
XXX FIXME : Dispatch a mozChromeEvent: webapps-registry-ready
JavaScript error: jar:file:///home/rijumone/Downloads/b2g/omni.ja!/components/nsDOMIdentity.js, line 8: Error: navigator.id.watch was already called
JavaScript error: app://system.gaiamobile.org/js/antitheft_manager.js, line 1: NS_ERROR_UNEXPECTED:
###################################### BrowserElementCopyPaste.js loaded
############################### browserElementPanningAPZDisabled.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
JavaScript error: resource://gre/modules/PhoneNumberUtils.jsm, line 2: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIXPCComponents_Utils.import]
JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 3: TypeError: navigator.mozMobileConnections is undefined
XXX FIXME : Got a mozContentEvent: system-message-listener-ready
1532463038128 AlarmsService DEBUG init()
1532463038129 AlarmsService DEBUG _restoreAlarmsFromDb()
JavaScript error: app://system.gaiamobile.org/js/software_button_manager.js, line 5: TypeError: this._currentOrientation.index is not a function
1532463038201 AlarmsService DEBUG Callback after getting alarms from database: []
1532463038201 AlarmsService DEBUG Current alarm: null
1532463038201 AlarmsService DEBUG Alarm queue: []
JavaScript error: app://system.gaiamobile.org/dist/bundle.js, line 1: TypeError: e is undefined
###################################### BrowserElementCopyPaste.js loaded
############################### browserElementPanningAPZDisabled.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
JavaScript error: resource://gre/modules/DOMIdentity.jsm, line 19: Error: PERMISSION_DENIED
Could not have FTU: manifestURL:undefined, _ftu:null
JavaScript error: app://system.gaiamobile.org/js/statusbar.js, line 74: ReferenceError: Bluetooth is not defined
JavaScript error: app://system.gaiamobile.org/js/app_transition_controller.js, line 19: TypeError: Service.query(...) is null
JavaScript error: jar:file:///home/rijumone/Downloads/b2g/omni.ja!/components/BrowserElementParent.js, line 98: NS_ERROR_NOT_IMPLEMENTED: SetNFCFocus for in-process mode is not yet supported
XXX FIXME : Got a mozContentEvent: inputmethod-update-layouts
XXX FIXME : Got a mozContentEvent: inputmethod-update-layouts
JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 4: TypeError: navigator.mozVoicemail is undefined
JavaScript error: app://system.gaiamobile.org/js/statusbar.js, line 51: TypeError: this.icons.dataConnection is undefined
###################################### BrowserElementCopyPaste.js loaded
############################### browserElementPanningAPZDisabled.js loaded
############################### browserElementPanning.js loaded
######################## BrowserElementChildPreload.js loaded
Keyboard.jsm Warning: There are more than one content page with input-manage permission. There will be undeterministic responses to addInput()/removeInput() if both content pages are trying to respond to the same request event.
(/home/rijumone/Downloads/b2g/plugin-container:4087): Gtk-WARNING **: Theme parsing error: gtk-contained.css:27:19: Missing name of pseudo-class
(/home/rijumone/Downloads/b2g/plugin-container:4087): Gtk-WARNING **: Theme parsing error: gtk-contained.css:2780:55: Not a valid image
###################################### forms.js loaded
############################### browserElementPanningAPZDisabled.js loaded
############################### browserElementPanning.js loaded
###################################### BrowserElementCopyPaste.js loaded
######################## BrowserElementChildPreload.js loaded
JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 3: TypeError: navigator.mozBluetooth is undefined
-*- Shell.js: Starting USB debugger on 6000
XXX FIXME : Dispatch a mozPrefChromeEvent: undefined
XXX FIXME : Dispatch a mozChromeEvent: remote-debugger-prompt
XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
*** UTM:SVC TimerManager:notify - notified @mozilla.org/b2g/webapps-update-timer;1
答案 0 :(得分:0)
您确定WebIDE和仿真器之间已建立连接吗? 通常初始化模拟器需要一些时间。
...
######################## BrowserElementChildPreload.js loaded
JavaScript error: app://launcher.gaiamobile.org/dist/app.bundle.js, line 3: TypeError:
navigator.mozBluetooth is undefined
-*- Shell.js: Starting USB debugger on 6000 <<<<<<<< NOW TRY TO CONNECT
XXX FIXME : Dispatch a mozPrefChromeEvent: undefined
XXX FIXME : Dispatch a mozChromeEvent: remote-debugger-prompt
...
答案 1 :(得分:0)
降级到Firefox 43,然后尝试安装该版本的Firefox仿真器。它对我有用:)
答案 2 :(得分:0)
降级到Firefox v59。您可以从here下载它。我已经尝试过了,可以确认它是否有效。
答案 3 :(得分:0)
如果您尝试在Windows OS中启动,几乎是不可能的,但是如果您在Windows的真实或oracle VM中具有ubuntu OS,则模拟器远程运行时将无法运行,因为运行时位于本地,因此无需远程连接,此项目将在以后删除。您只需解压缩从ubuntu OS中从此处下载的zip文件,即可启动/运行kaiosrt文件-https://developer.kaiostech.com/simulator/linux
另外,在尝试使用KaiOS模拟器之前,请先阅读说明-https://s3.amazonaws.com/kaicloudsimulatordl/release_note.pdf