android build失败了'找不到与com.google.android.gms匹配的任何版本:play-services-ads:+。'

时间:2017-04-06 08:17:41

标签: android ionic2

我刚刚在我的ionic2项目中添加了admobpro插件,我已经尝试tutorial添加admobpro插件,没有安装插件项目构建正常但是一旦我安装插件构建失败并且我在终端中收到此错误:

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-ads:+.

 Searched in the following locations:
     https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/maven-metadata.xml

     https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/
     file:/Users/chaitanya/Documents/software/android-sdk-macosx/extras/android/m2repository/com/google/android/gms/play-services-ads/maven-metadata.xml
     file:/Users/chaitanya/Documents/software/android-sdk-macosx/extras/android/m2repository/com/google/android/gms/play-services-ads/
 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: 2 mins 10.896 secs

Error: Error code 1 for command: /Users/chaitanya/desktop/ionic2/NearByApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/chaitanya/desktop/ionic2/NearByApp/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
来自package.json文件的

版本和插件信息,

 "dependencies": {
"@angular/common": "2.4.8",
"@angular/compiler": "2.4.8",
"@angular/compiler-cli": "2.4.8",
"@angular/core": "2.4.8",
"@angular/forms": "2.4.8",
"@angular/http": "2.4.8",
"@angular/platform-browser": "2.4.8",
"@angular/platform-browser-dynamic": "2.4.8",
"@angular/platform-server": "2.4.8",
"@ionic-native/core": "3.1.0",
"@ionic-native/geolocation": "^3.4.4",
"@ionic-native/launch-navigator": "^3.4.4",
"@ionic-native/splash-screen": "3.1.0",
"@ionic-native/status-bar": "3.1.0",
"@ionic/storage": "2.0.0",
"font-awesome": "^4.7.0",
"ionic-angular": "2.3.0",
"ionic2-rating": "^1.2.0",
"ionicons": "3.0.0",
"rxjs": "5.0.1",
"sw-toolbox": "3.4.0",
"zone.js": "0.7.2"
},
"devDependencies": {
"@ionic/app-scripts": "1.1.4",
"typescript": "2.0.9"
},
      "cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [
"ios",
{
  "platform": "ios",
  "version": "",
  "locator": "ios"
}
],

0 个答案:

没有答案