我正在使用
dependencies {
//[...] other dependencies omitted here
compile 'com.afollestad:material-dialogs:0.8.5.2'
}
在build.gradle
内。正在运行$ gradle clean build
让我
[...] much output omitted
:prepareComAndroidSupportSupportV42311Library
:prepareOsmbonuspack_v53Library
:prepareDebugDependencies
Module 'com.afollestad:material-dialogs:0.8.5.2' depends on one or more Android Libraries but is a jar
:prepareDebugDependencies FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':prepareDebugDependencies'.
> Dependency Error. See console for details.
* 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: 4.045 secs
所以问题似乎是模块'com.afollestad:material-dialogs:0.8.5.2'依赖于一个或多个Android库,但是是一个jar 但是searching the web for a solution没有帮助
如何解决该依赖性错误?
答案 0 :(得分:1)
试试这个:
compile('com.github.afollestad.material-dialogs:core:0.8.5.2@aar') {
transitive = true
}