innova-re / ips

launchnavigator
3 stars 0 forks source link

BUILD FAILED - No resource found that matches the given name #68

Closed apierr closed 8 years ago

apierr commented 8 years ago

Running the following command ionic build android, it can raise the following message:

platforms/android/ant-build/AndroidManifest.xml:12: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
     [aapt]

BUILD FAILED
/usr/local/opt/android-sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/usr/local/opt/android-sdk/tools/ant/build.xml:694: null returned: 1

Total time: 1 second

/Users/antonio/Sites/innovare/ips/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: ant with args: debug,-f,/Users/antonio/Sites/innovare/ips/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
ERROR building one of the platforms: Error: /Users/antonio/Sites/innovare/ips/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/antonio/Sites/innovare/ips/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
apierr commented 8 years ago

You can fix the build issue performing the following steps:

  1. Install the newest version of Android SDK if it is available:

    > android
  2. Removing directory named platforms/android/ and plugins/ in your project directory.

    > rm -rf platforms/android
    > rm -rf plugins
  3. Re-running the build command, the error message should disappear:

    > ionic build android
    > ionic emulate android