嗨,我是黑莓手機新手,我開發了BB10應用程序。我已經在模擬器上測試了它的工作正常。但是當我嘗試在BB10 dev alpha設備上啓動應用程序時,它會發出錯誤「無法推送應用程序,原因是錯誤22」。如何在BB10 dev alpha設備上啓動應用程序
blackberry-signer -register -csjpin <csj pin> -storepass <KeystorePassword> <client-RDK-xxxxxx.csj file><client-PBDT-xxxxx.csj file>
其次,我創建了一個調試令牌使用:
首先我一直在使用創建的開發者證書: ,我已經使用的步驟
blackberry-debugtokenrequest -storepass <KeystorePassword> -devicepin <device PIN> <debug_token_file_name.bar>
然後我安裝調試令牌開發alpha設備使用:
blackberry-deploy -installDebugToken <path to debug token> -device <IP address of device> -password <device password>
然後我有編譯採用ED應用:
bbwp [drive:][path]archive -d [-o dir]
然後我就用下面的語法部署的應用程序:
blackberry-deploy -installApp -password <device password> -device <IP address of device> -package <BAR file path>
的應用程序安裝在正確的設備,但是當我點擊應用程序圖標,我得到了錯誤22
請幫助我,讓我可以在設備上運行應用程序。
------ ------- ------ ------- ------ ------- - ----- ------- ------ ------- ------ -------
當我試圖通過漣漪啓動應用程序,然後我也得到了同樣的錯誤。 以下是我在cmd提示符下看到的內容。
2013-02-28 11:13:31 GET /ripple/build_status/6362 200
Info: Sending request: Install and Launch
Info: Action: Install and Launch
Info: File size: 411108
Info: Installing App.testDev_App___dbc068a4...
Info: Processing 411108 bytes
Info: Progress 96%...
Info: Progress 100%...
actual_dname::App.testDev_App___dbc068a4
actual_id::testDev_App___dbc068a4
actual_version::2.0.0.0
result::success
Info: Launching App.testDev_App___dbc068a4...
Error: Error loading application package: Invalid argument
請幫助,以便我可以繼續。 在此先感謝。
更新
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:rim="http://www.blackberry.com/ns/widgets"
version="2.0.0.0" id="someId">
<author href="https://www.example.com/"
rim:copyright="Copyright 1998-2012 My Corp">quepp</author>
<name>appName</name>
<description>
description
</description>
<!--<icon src="icon"/>-->
<content src="index.html"/>
<feature id="blackberry.app">
<param name="backgroundColor" value="FFFFFF" />
</feature>
<feature id="blackberry.app">
<param name="orientation" value="portrait" />
</feature>
<feature id="blackberry.ui.dialog"/>
<feature id="blackberry.identity" />
<access uri="*" subdomains="true" />
<license href="" />
<rim:permissions>
<rim:permit>access_shared</rim:permit>
<rim:permit>read_device_identifying_information</rim:permit>
</rim:permissions>
</widget>
是否打開了設備上的開發模式? – 2013-02-28 06:51:11
是的,我做了...因爲沒有這個是不可能在設備上安裝應用程序。 – Arpit 2013-02-28 07:11:17
你可以發佈你的config.xml文件嗎?你能否驗證你放在你的作者標籤中的名字是否與你用於簽名密鑰的名字相符? – 2013-03-01 22:59:28