mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 918 forks source link

Update plugin by using monaca #608

Closed Tong2203 closed 9 years ago

Tong2203 commented 9 years ago

Hi, I want to update plugin by using monaca. But I can't build success.

error message:

Temporary folder: /private/tmp/monaca/55efbf0d7e2193f6144ff7d8
Downloading project
Download complete
Running for 3.5
Installing "android.support.v4" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "com.google.playservices" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Updated local.properties
No project name specified, using project folder name 'google-play-services_lib'.
If you wish to change it, edit the first line of build.xml.
Added file /private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/com.google.playservices/google-play-services_lib/build.xml
Added file /private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/com.google.playservices/google-play-services_lib/proguard-project.txt
PLUGIN IS DEPRECATED: com.google.playservices

Plugins should use framework tags instead.

E.g.:
    <framework src="com.google.android.gms:play-services-plus:+" />
    <framework src="com.google.android.gms:play-services-identity:+" />>

Full list available: http://developer.android.com/google/play-services/setup.html

Installing "com.googlemaps.ios" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "com.wikitude.phonegap.WikitudePlugin" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "mobi.monaca.plugins.Monaca" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "mobi.monaca.plugins.WebIntent" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.dialogs" for android
Installing "org.apache.cordova.file" for android
Installing "org.apache.cordova.file-transfer" for android
Installing "org.apache.cordova.geolocation" for android
Installing "org.apache.cordova.globalization" for android
Installing "org.apache.cordova.ibeacon" for android
Installing "org.apache.cordova.inappbrowser" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "org.apache.cordova.media" for android
Installing "org.apache.cordova.network-information" for android
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.vibration" for android
Installing "plugin.google.maps" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Installing "plugin.http.request" for android
cordova version not detected (lacks script "/private/tmp/monaca/55efbf0d7e2193f6144ff7d8/android/skeleton/platforms/android/cordova/version" ), continuing.
Error during processing of action! Attempting to revert...
Failed to install 'plugin.google.maps':Error: Uh oh!
cannot find "/Applications/adt-bundle-mac/sdk/com.google.android.gms:play-services-maps:+/project.properties" referenced in <framework>
    at Object.AndroidProject.addSubProject (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/android-project.js:69:51)
    at module.exports.framework.install (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:110:27)
    at Object.ActionStack.process (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:70:25)
    at handleInstall (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:560:20)
    at /data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:320:20
    at _fulfilled (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:760:13)
    at /data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:108:17)
Error: Uh oh!
cannot find "/Applications/adt-bundle-mac/sdk/com.google.android.gms:play-services-maps:+/project.properties" referenced in <framework>
    at Object.AndroidProject.addSubProject (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/android-project.js:69:51)
    at module.exports.framework.install (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:110:27)
    at Object.ActionStack.process (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:70:25)
    at handleInstall (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:560:20)
    at /data/monaca_build_module/3.5/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:320:20
    at _fulfilled (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:760:13)
    at /data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:574:44
    at flush (/data/monaca_build_module/3.5/node_modules/cordova/node_modules/q/q.js:108:17)
Build error: Error building project source code

could you update the "Tutorial for Monaca" ? think you very much

hirbod commented 9 years ago

Sorry, but feel free to submit an update, I have no experience with monaca.

hirbod commented 9 years ago

Set your correct SDK Path and check inside of ANDROID SDK Manager that you have included "Google Repostories"