我必须在我的自定义cordoava插件中使用Android-Image-Cropper,用于增加gardle文件以保持依赖性。
//build.gradle
dependencies {
repositories {
mavenCentral()
}
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.sothree.slidinguppanel:library:3.3.1'
compile 'com.theartofdev.edmodo:android-image-cropper:+'
}
但是在构建项目时(在Ionic中开发的应用程序)我收到以下错误
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.theartofdev.edmodo:android-image-cropper:+.
Searched in the following locations:
https://repo1.maven.org/maven2/com/theartofdev/edmodo/android-image-cropper/maven-metadata.xml
https://repo1.maven.org/maven2/com/theartofdev/edmodo/android-image-cropper/
file:/Users/santosh/Documents/Developer/android-sdk-macosx/extras/android/m2repository/com/theartofdev/edmodo/android-image-cropper/maven-metadata.xml
file:/Users/santosh/Documents/Developer/android-sdk-macosx/extras/android/m2repository/com/theartofdev/edmodo/android-image-cropper/
file:/Users/santosh/Documents/Developer/android-sdk-macosx/extras/google/m2repository/com/theartofdev/edmodo/android-image-cropper/maven-metadata.xml
file:/Users/santosh/Documents/Developer/android-sdk-macosx/extras/google/m2repository/com/theartofdev/edmodo/android-image-cropper/
Required by:
:android:unspecified
请帮我解决此问题。
答案 0 :(得分:2)
Add JCenter到您的存储库
repositories {
jcenter()
mavenCentral()
}
dependencies {
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.sothree.slidinguppanel:library:3.3.1'
compile 'com.theartofdev.edmodo:android-image-cropper:2.3.+'
}
答案 1 :(得分:0)
尝试使用:
compile 'com.theartofdev.edmodo:android-image-cropper:2.1.4'
这对我来说很好。