Software Archive
Read-only legacy content
17061 討論

Can't install app built with xdk 1816

Tony_B_
初學者
1,234 檢視

Good morning,

I built and installed a Crosswalk app using the old xdk 1621 and this worked fine on my Samsung Galaxy S4. Then I upgraded xdk to 1816 and did another crosswalk build with the same app but after I downloaded it to my S4 and tapped "Install" it immediately failed with a message "App not installed". The app is cwk63 here's a link to the apk file  https://www.dropbox.com/s/h51xpv3vddsfv2n/CWK63.crosswalk.arm.20150224111819.apk?dl=0 

0 積分
1 解決方案
Eric_H_Intel
員工
1,234 檢視

Tony,

As of Cordova 3.6, the first section of the package name may only contain alphabetic characters (a-z/A-Z).   The current check is based on the Java Package Naming Convention ( http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html ).   

Try the build without  the numbers in the first section of the package name. (ex.  cwk.test63.test)

Eric

在原始文章中檢視解決方案

7 回應
Tony_B_
初學者
1,234 檢視

I should add I'm using Win 7 - sorry.

John_H_Intel2
員工
1,234 檢視

Your app installed just fine on my S4.

Make sure you dont already have it installed. Not sure if how you are installing it will allow an over install. I used ADB and it installed. Also, I noticed you are using the default APPID, you really should change it to something unique to your app ;)

PaulF_IntelCorp
1,234 檢視

This could be related to this issue https://software.intel.com/en-us/forums/topic/541997, where some people are getting incorrect versionCodes in their Crosswalk builds.

PaulF_IntelCorp
1,234 檢視

The build servers are being repaired and rebooted to address this issue, should be fixed today.

Tony_B_
初學者
1,234 檢視

Thanks for the suggestions, I'll have to hold off on testing this further as I'm having another problem with xdk 1816 that I'm working on with IntelEric, the thread is on the old xdk forum. Basically I can not build new versions of my app, when I try to build it fails immediately with the message below. I'll have to resolve this with Eric first then get back to trying the install again.

Tony

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • The App ID is "cwk63.test.test"
  • The App Name is "CWK63"
  • Crosswalk Version: 10.39.235.15
Eric_H_Intel
員工
1,235 檢視

Tony,

As of Cordova 3.6, the first section of the package name may only contain alphabetic characters (a-z/A-Z).   The current check is based on the Java Package Naming Convention ( http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html ).   

Try the build without  the numbers in the first section of the package name. (ex.  cwk.test63.test)

Eric

Tony_B_
初學者
1,234 檢視

Thanks to IntelEric the problem has been fixed.

The issue was the name of the AppID, I had successfully been using aaann where aaa was the name of the app and nn was a two digit version number. With xdk 1816 the AppID had to be changed to a 3-part name and numeric digits are not allowed in the first part of the appID. For example I was originally using cwk63 and this had to be changed to cwk.test63.test and this worked.

 

This had two effects:

1) It prevented the build from working at all

2) It prevented me from installing the app.

Both problems are now fixed - thanks Eric.

回覆