0
我在Github上找到了一个库,我想将其包含到我的Android项目(我使用Android Studio)中,该项目使用Maven进行分发。不幸的是我无法弄清楚如何将这个库摇篮给出的Github的页面上的内行pom.xml文件补充:Gradle包括Maven
<dependency>
<groupId>com.github.japgolly.android</groupId>
<artifactId>svg-android</artifactId>
<version>2.0.6</version>
GitHub的页面是https://github.com/japgolly/svg-android
我的build.gradle文件(它不工作了)到目前为止:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.tg.myapplication"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven { url 'http://github.com/japgolly/svg-android' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'svg-android:2.0.6'
}
解决了。非常感谢 – Waschbaer 2014-09-04 10:13:49