You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Michael Schmidt (JIRA)" <ji...@apache.org> on 2013/11/03 18:55:17 UTC
[jira] [Updated] (CB-5255) Build script crashes when using Google
APIs Target
[ https://issues.apache.org/jira/browse/CB-5255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Schmidt updated CB-5255:
--------------------------------
Description:
The command "phonegap local build android" crashes when "Google APIs" are set for the project target (instead of the Android target).
in project.properties:
- CRASH:
{code:properties}
target=Google Inc.:Google APIs:19
{code}
- WORKS:
{code:properties}
target=android-19
{code}
Error log:
{quote}
$ phonegap local build android
{quote}
{quote}
[phonegap] compiling Android...
[error] An error occurred while building the android project.
/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35
return target.split('=')[1].replace('\n', '').replace('\r', '').replac
^
TypeError: Cannot call method 'replace' of undefined
at Object.module.exports.get_target (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35:37)
at Object.module.exports.check_android (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:63:29)
at Object.module.exports.run (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:77:56)
at Object.<anonymous> (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/build:30:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
{quote}
was:
The command "phonegap local build android" crashes when "Google APIs" are set for the project target (instead of the Android target).
in project.properties:
- CRASH: target=Google Inc.:Google APIs:19
- WORKS: target=android-19
Error log:
$ phonegap local build android
[phonegap] compiling Android...
[error] An error occurred while building the android project.
/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35
return target.split('=')[1].replace('\n', '').replace('\r', '').replac
^
TypeError: Cannot call method 'replace' of undefined
at Object.module.exports.get_target (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35:37)
at Object.module.exports.check_android (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:63:29)
at Object.module.exports.run (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:77:56)
at Object.<anonymous> (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/build:30:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
> Build script crashes when using Google APIs Target
> --------------------------------------------------
>
> Key: CB-5255
> URL: https://issues.apache.org/jira/browse/CB-5255
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.1.0
> Reporter: Michael Schmidt
> Labels: build
>
> The command "phonegap local build android" crashes when "Google APIs" are set for the project target (instead of the Android target).
> in project.properties:
> - CRASH:
> {code:properties}
> target=Google Inc.:Google APIs:19
> {code}
> - WORKS:
> {code:properties}
> target=android-19
> {code}
> Error log:
> {quote}
> $ phonegap local build android
> {quote}
> {quote}
> [phonegap] compiling Android...
> [error] An error occurred while building the android project.
> /Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35
> return target.split('=')[1].replace('\n', '').replace('\r', '').replac
> ^
> TypeError: Cannot call method 'replace' of undefined
> at Object.module.exports.get_target (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:35:37)
> at Object.module.exports.check_android (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:63:29)
> at Object.module.exports.run (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/lib/check_reqs.js:77:56)
> at Object.<anonymous> (/Users/testuser/Documents/phonegap-project/platforms/android/cordova/build:30:16)
> at Module._compile (module.js:456:26)
> at Object.Module._extensions..js (module.js:474:10)
> at Module.load (module.js:356:32)
> at Function.Module._load (module.js:312:12)
> at Function.Module.runMain (module.js:497:10)
> at startup (node.js:119:16)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.1#6144)