2013-02-28 140 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

相关问题