Polisurgist
Polisurgist

Reputation: 340

PhoneGap 3.0: `phonegap platform build android` returns success but buildfile doesn't exist

Using Windows 7. Walking through the process in PhoneGap documentation here, I'm eventually stuck on the step of creating the project using Eclipse, but the root cause seems to be happening in the build step. Running it normally, I get a response that indicates success, but with the -V flag, I see this output:

 C:\Development\local>phonegap local build android -V
 [phonegap] compiling Android...
 [phonegap] cordova library for "android" already exists. No need to download. Continuing.
 [phonegap] Calling plugman.prepare for platform "android"
 cp: dest file already exists: C:\Development\local\platforms\android\assets\www\phonegap.js
 [phonegap] Compiling platform "android" with command ""C:\Development\local\platforms\android\cordova\build"" (output to follow)...
 [phonegap] Cleaning project...
 WARNING: [ --debug | --release | --nobuild ] not specified, defaulting to --debug.
 Buildfile: C:\Development\local\platforms\android\build.xml does not exist!
 Build failed
 [phonegap] Platform "android" compiled successfully.
 [phonegap] successfully compiled Android app

I believe all my PATH variables are set up correctly, and the only other thing I saw here or on the phonegap list indicated there was a problem with this when the project name included spaces, though mine doesn't.

Any assistance would be appreciated.

Upvotes: 1

Views: 3602

Answers (1)

Polisurgist
Polisurgist

Reputation: 340

It appears that the problem was a badly-formed config file stemming from the fact that I created the project incorrectly, leaving out the quotes in: $ cordova create hello com.example.hello "HelloWorld"

Upvotes: 3

Related Questions