在我的android库项目中,我包含了许多第三方库,比如
compile 'com.jakewharton:butterknife:8.0.1'
apt 'com.jakewharton:butterknife-compiler:8.0.1'
// Java8的时间库
compile 'com.jakewharton.threetenabp:threetenabp:1.0.3'
// RxJava
compile 'io.reactivex:rxjava:1.1.5'
compile 'io.reactivex:rxandroid:1.2.0'当我使用./gradlew install构建时,arr没有包含这第三个库。所以我的另一个项目不能引用这个库。
但是当我把罗西项目(https://github.com/Karumi/Rosie)包括进来的时候。我可以自动包含dagger、butterknife……
我该怎么做呢?
我希望我的库在我的arr.What中包含这些第三方库,我可以这样做吗?
发布于 2016-05-30 21:38:00
你必须在你的build.gradle中包含以下几行代码才能使用Butterknife:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.neenbedankt.android-apt'https://stackoverflow.com/questions/37526800
复制相似问题