invalid characters in filename or directories while building blackberry in phonegap

  • 1
  • Problem
  • Updated 7 years ago
  • Solved
My app is in Android and i am trying to deploy it to get blackberry executable in phonegap however i am getting same error again again that "invalid characters in filename or directories" . I have removed all special characters from filenames and directories too still facing the same error.

Please help out ASAP
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
  • sad

Posted 8 years ago

  • 1
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello ErShipra

What is your appid on Build? I can take a quick look into it. You can find the appid from the URL bar (../apps/xxxx)

Let me know

-Amir
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
App Id is 218321
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Latest App id is 218835
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Hi Amir,
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
The AppId of my application is 218321.
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Now I am getting this error.
Error - invalid characters [._-] in filenames and/or directories: SelfCare/bin/classes/com/at/idea/selfcare/R$attr.class
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
I have removed the $ sign from the class name R$attr.class still I am getting the above mentioned error. Please help .

Thanks in advance
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello ErShipra

I cannot open the app 218321. Can you provide the latest appid?

Thanks
-Amir
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
218835
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Remove the folder 'SelfCare' from the zip package and try re-upload. It should do the trick.

Cheers
-Amir
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
but how can i upload my selfcare folder without zip as there is many sub-folders in it.

Please reply

-shipra
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
I have followed your suggestion then I got error as " Error - you cannot have directories named 'src' or 'bin' . I renamed them. After uploading I got the error as -"Error - invalid characters [._-] in filenames and/or directories"

Please help
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
ErShirpa

You only need the following items inside your .zip package before uploading to Build:

api [folder]
css [folder]
images [folder]
scripts [folder]
config.xml [file]
home.html [file]
index.html [file]

-Amir
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Thanks a lot for your help . Its really useful for me. Now I can build blackberry excutable successfully.

But I have one more issue i.e on build it is generating OTA install and when I click on install it opens on the browser . So I can I get .cod file for my blackberry mobile.
Please help me out on this .

-shipra
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
You need to supply your own Blackberry signing keys in order to get your cod file. To do this, read the following documentation:
https://build.phonegap.com/docs/black...

-Amir
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi Amir,

I get same problem, but I cannot clear.
Could you tell exact directory structure for phone gap build.

Thank you...
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi ErShirpa,

My app also android, I am also trying to deploy it to get blackberry executable in phone gap.

I get same problem like invalid characters in file name or directories.
I changed all file names except cordova-2.0.0.js and cordova-2.0.0.jar.

I heard you cleared this problem from your above comments, could you tell about your directory structure and these two file names(cordova-2.0.0.js and cordova-2.0.0.jar).

please tell solution for this, I am trying from past 3 days.

Thank you,
siva.
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Hi Siva,

we have removed all special characters..
we have zipped below mentioned folders and uploaded in Phonegap
api [folder]
css [folder]
images [folder]
scripts [folder]
config.xml [file]
home.html [file]
index.html [file]
we have deleted src and bin folder too..
you also need signing keys for the build
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Hi Amir,
Thanks for your urgent and valuable help
now we have successfully got blackberry executable however when we installed and tried to run it my background image is not coming full screen..

Could you please help us??
Thanks in advance
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hi ErShirpa

This is a generic question you might want to ask at our framework community forum here: http://groups.google.com/group/phonegap.

We have a very good collection of QnA over there with the help of PhoneGap community and it's developer. Hope you can find the answer soon.

-Amir
Photo of ErShipra Das

ErShipra Das

  • 20 Posts
  • 0 Reply Likes
Hi Amir,

Thanks a lot for your help .

-shipra
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi ErShirpa,

Thank you ver much for your kind response.

I have blackberry signed keys.

what is "api" folder, in that folder what files we have to place.
In my (Android+phone gap) project directory structure doesn't have "api" folder.
I will remove "src" and "bin" folder and where I have to place java file and library files.

Thank you,
siva.
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hello Gudluri

Actually the folders and files mention by ErShirpa is only applicable to her/his project. Build does not restrict you with standard directory structure within your asset/www folder. You can have many folder and many files. The only important stuff to have on your .zip package is the index.html and config.xml.

See following example, play around and try to compile it with Build.

https://github.com/amirudin/pgb-camer...

For a complete documentation about Build, refer below:
https://build.phonegap.com/docs

-Amir
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi Amir,

I changed all file names, but still showing same error.

While starting project(android+phone gap), I followed phone gap docs.
They suggested place all ".html" files, ".js" files ,".css" files and images in "WWW" folder and all ".xml" files in "res/xml" folder.

Could you give proper directory structure for android+phone gap to support all platforms.

Thank you,
Siva
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Hey mate

You just need html, js or css file and are not required to upload the entire locally-built project files (like .java, .jar or .xml). Otherwise, you can share your appid so I can have quick look into it. You can find the id from the URL bar:
(.../apps/xxxx)

-Amir
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi Amir,

Thank you for your kind response.

My application AppId is 219558.

I mentioned above my application app id and please tell me wanted files .

If no need .java, .jar or .xml files means, then where I have to place the config.xml file.

Its making some what confusing to , could explain clearly about flow of phone gap build.

Thank you,
Siva
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes
Sure, you just need the following on your .zip file:

|-- emp.html
|-- home.html
|-- index.html
|-- jquery.js
|-- main.css
|-- main.js
`-- master.css

...and then setting up your icon / splash screen via [config.xml]. Later, put config.xml file in the root directory.

As I mentioned earlier, Build does not restrict you with standard directory structure within your asset/www folder. If you coming from docs.phonegap.com then you just need to bring over 'www' or 'assets' folder to Build. Forget about all the sdk, xml, .jar, java etc. Build will prepare all those required stuff for you.

Please read the following documentation to have batter picture on how Build actually work.

https://build.phonegap.com/docs

Thank you.
-Amir
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi Amir,

Thank you very much for you kind response.

Thank you,
Siva.
Photo of gudluri siva

gudluri siva

  • 62 Posts
  • 0 Reply Likes
Hi ErShirpa,

Thank you ver much for your kind response.

Now I cleared about generate the build for blackberry.

My application works fine in android, but not working in blackberry.

If we want to run our application in blackberry means do we want do any configuration in config.xml.

If "yes" means what factors do we want add?

Thank you,
siva.
Photo of Yama

Yama

  • 18 Posts
  • 0 Reply Likes
Hello Amir,

My app is in iphone and i want to get blackberry executable in phonegap. i have fallow the posts and try to solve the problem but still i am getting same error "invalid characters in filename or directories" . since 3 days i am trying to solve the problem my app ID is 238792

Please help
Thank you
Photo of Amir

Amir

  • 8261 Posts
  • 263 Reply Likes

This conversation is no longer open for comments or replies.