我在 https://github.com/jfpsf/flurry-phonegap-plugin的帮助下整合了 Flurry
我手动复制了 FlurryAnalytics-6.0.0.jar 文件
我已经安装了以下插件
但是当我运行创建构建的命令时
cordova run
它给了我以下错误
$ cordova run
Running command: /Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/cordova/run
ANDROID_HOME=/usr/local/Cellar/android-sdk/24.3.4
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
WARNING : No target specified, deploying to device '192.168.56.101:5555'.
Running: /Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/gradlew cdvBuildDebug -b /Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
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 com.android.support:support-v4:22.2.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar
file:/usr/local/Cellar/android-sdk/24.3.4/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom
file:/usr/local/Cellar/android-sdk/24.3.4/extras/google/m2repository/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar
Required by:
:android:unspecified > com.google.android.gms:play-services-plus:8.1.0 > com.google.android.gms:play-services-base:8.1.0 > com.google.android.gms:play-services-basement:8.1.0
* 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: 6.232 secs
/Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true
ERROR running one or more of the platforms: Error: /Users/rauf/Documents/Chatbudi/Chatbudi-client/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project
请让我知道我必须为此做些什么,在快速插件集成之前构建工作正常。