android - 无法解决:com.android.support:support-v4:27.1.1。当我添加 graphview 依赖项时发生此错误
问题描述
我在工作室中有这个gradle。它工作正常但是当我尝试添加graphView的新依赖项时(编译'com.jjoe64:graphview:4.2.2')。它给了我无法解决错误。这是我的毕业典礼:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenLocal()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
这是模块gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "28.0.1"
defaultConfig {
applicationId "com.example.yawarabbas.gymcoach_app"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true //important
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
compile 'com.android.support:support-core-ui:26.0.0-alpha1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.romandanylyk:pageindicatorview:1.0.2'
compile 'com.google.code.gson:gson:2.4'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
compile 'com.github.HotBitmapGG:RingProgressBar:V1.2.3'
compile 'com.jjoe64:graphview:4.2.2'
}
如何解决?我已经阅读了很多解决方案,但它不起作用。
解决方案
推荐阅读
- vb6 - vb6 / 通过 api 或其他方式在同一浏览器选项卡中打开 url?
- javascript - 在原始视图中以横向或纵向显示图像不拉伸
- c - 在 C 中创建一个要写入的新文件并将其初始化为空?
- node.js - 将 JSON 作为字符串存储在 Azure SQL 数据库中
- javascript - 无法使用 javascript 使窗口淡出或在 css 中添加过渡效果
- c# - 在 Unity 中修改 PS3 控制器的操纵杆灵敏度
- ansible - Ansible 2.9 Cisco IOS 模块循环
- r - R Shiny:散点图未显示
- python-3.x - 如何以编程方式获取我是 Telegram 成员的封闭组中的一个特定用户发送的消息?
- java - Firebase 快照到 json 颤振模型