2013-02-28 52 views
0

嗨,我是黑莓手機新手,我開發了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> 
+0

是否打開了設備上的開發模式? – 2013-02-28 06:51:11

+0

是的,我做了...因爲沒有這個是不可能在設備上安裝應用程序。 – Arpit 2013-02-28 07:11:17

+0

你可以發佈你的config.xml文件嗎?你能否驗證你放在你的作者標籤中的名字是否與你用於簽名密鑰的名字相符? – 2013-03-01 22:59:28

回答

0

請問您的應用程序需要訪問一些受限制的資源,如相機或文件?

在這種情況下,您需要在config.xml中添加相關權限。

+0

不,我的應用程序不需要訪問攝像頭 – Arpit 2013-05-30 11:44:44

0

我使用簽名密鑰,所以只是使用它們。 (命令行參數可以更改) cd C:\ Program Files \ Research in Motion \ BlackBerry 10 WebWorks SDK 1.0.4。11

之後,簽署應用

bbwp FOLDER_APP -g PASS_KEY --buildId NUMBER -o OPUTPUT FOLDER -d 

其中:

-d => debug 
FOLDER APP => where you have your webworks app 
PASS_KEY => the password to sign an app(I supose you can ignore this parameter) 

之後,去

cd dependencies\tools\bin 

和部署應用程序:

blackberry-deploy -installApp -password PASS_DEVICE -device IP -package BAR FILE 

其中:

password => the password of your device fixed AFTER activating the development mode. 
IP => the IP of your device(I deploy via WIFI). 
BAR FILE => path to your previously generated bar file. 
+0

感謝您的幫助Pablo Flores。但現在我能夠啓動我的應用程序。我已經更新了設備的操作系統。 – Arpit 2013-09-03 13:25:34

+0

對你很好。 :) – 2013-09-10 08:50:54

+0

你能幫我想出這個嗎?http://stackoverflow.com/questions/18748360/blackberry-10-webworks-sdk-command-line-generate-build-with-package-and-signing – Blynn 2013-09-11 18:33:19

相關問題