电话间隙项目中的乱舞集成导致问题

时间:2015-10-12 15:19:17

标签: cordova phonegap-plugins flurry flurry-analytics

我正在整合乱舞 https://github.com/jfpsf/flurry-phonegap-plugin

我手动复制了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

请让我知道我必须做些什么,在flurry插件集成之前构建工作正常。

1 个答案:

答案 0 :(得分:0)

我是这个插件的主要维护者。我们有一个应该解决这个问题的补丁,它将在接下来的一两天内集成。您应该真正解决有关此项目的问题https://github.com/jfpsf/flurry-phonegap-plugin