Closed rqsakai closed 9 years ago
check if minSdk is set to 14 and that you're on the newest Cordova and Android-Cordova
Try to set
<preference name="android-minSdkVersion" value="14" />
or
<preference name="android-minSdkVersion" value="16" />
inside your config.xml (inside of <platform name="android">
)
Thanks Hirbod but it didn't work.
Also i checked the AndroidManifest.xml file and we have this:
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
output
> cordova platform -v
and
> cordova platform version
If the problem persists, please double check inside of your SDK Manager, that you have playservices installed for all the SDKs.
Here it follows:
Rauls-MacBook-Pro:cupomap sakai$ cordova platform -v
5.2.0
The sdks
I had the same problem when I updated to Cordova 5. It turns out that you also need a few more. I believe it's the Google Play services and Google Repository
I'm sorry, I can't reproduce any of your bugs. Please double check Cordova-Android Platform version. (currently 4.1.1)
Guys, i
For the SDK's i've just double checked and is installed as recommended.
Rauls-MacBook-Pro:cupomap sakai$ cordova platforms ls
Installed platforms: android 4.1.1, ios 3.9.1
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, webos
I'm at a loss as to what can be wrong. You're problem is that the gradle build cannot find the files. Based on other postings here and here it is the Android installation.
Perhaps you can try to reinstall the Google Library since that is the complaint, as the first posting
I've discovered the error had to do with google repo after all. The install contained an error. I >uninstalled and reinstalled it again. It worked – GuruYaya Jun 20 at 16:36
indicates that solve their problem"
Rebuilt it.
Delete EVERY SDK and reinstalled it, but still gt the same error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any version that matches com.google.android.gms:play-services-maps:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-maps/
file:/Users/sakai/sdks/android/extras/android/m2repository/com/google/android/gms/play-services-maps/maven-metadata.xml
file:/Users/sakai/sdks/android/extras/android/m2repository/com/google/android/gms/play-services-maps/
file:/Users/sakai/sdks/android/extras/google/m2repository/com/google/android/gms/play-services-maps/maven-metadata.xml
file:/Users/sakai/sdks/android/extras/google/m2repository/com/google/android/gms/play-services-maps/
Required by:
:android:unspecified
> Could not find any version that matches com.google.android.gms:play-services-location:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/maven-metadata.xml
https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/
file:/Users/sakai/sdks/android/extras/android/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml
file:/Users/sakai/sdks/android/extras/android/m2repository/com/google/android/gms/play-services-location/
file:/Users/sakai/sdks/android/extras/google/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml
file:/Users/sakai/sdks/android/extras/google/m2repository/com/google/android/gms/play-services-location/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 19.493 secs
/Users/sakai/mobile/cupomap/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/sakai/mobile/cupomap/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/sakai/mobile/cupomap/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/sakai/mobile/cupomap/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: /Users/sakai/mobile/cupomap/platforms/android/cordova/build: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
Fixed this bug, It was the sdk path was wrong after i upgraded the android studio
Perfect. For all others: also check that you have "Google Repository" installed.
It's also important to install the Android Support Repository, Library, Play Services and Google Repository.
Hi guys,
I'm having an issue with android compilation after the googlemaps plugin install (IOS works like a charm).
Here follows the errors:
I tried to find the files and they don't exist only these ones:
I installed all the recommended SDK's on this Git tutorials.
Cordova plugins
XML CONFIG FILE
I appreciate any help