-2

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

4 回答 4

0

降级到 Firefox 43 并尝试在该版本中安装 Firefox 模拟器。这个对我有用:)

于 2018-08-06T11:20:26.550 回答
0

如果您尝试在 Windows 操作系统中启动,这几乎是不可能的,但如果您在真实的 ubuntu 操作系统或 Windows 的 oracle VM 中安装了 ubuntu 操作系统,那么模拟器远程运行时无法运行,因为运行时在本地,不需要远程连接,此项目之后将被删除,您只需要在从此处提取在 ubuntu OS 中下载的 zip 文件后启动/运行 kaiosrt 文件 - https://developer.kaiostech.com/simulator/linux

另外请在尝试 KaiOS 模拟器之前阅读说明 - https://s3.amazonaws.com/kaicloudsimulatordl/release_note.pdf

于 2018-12-16T07:35:01.433 回答
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
...
于 2018-07-31T13:42:51.437 回答
0

降级到 Firefox v59。您可以从这里下载它。我已经尝试过了,可以确认它有效。

于 2018-08-15T14:22:40.483 回答