我按照这里给出的官方指南。竟然达到了./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