导入此库后:https ://github.com/JoanZapata/android-pdfview ,
我收到了这个错误:
错误:SDK 构建工具修订版 (19.0.3) 对于项目“:android-pdfview-sample”而言太低。最低要求是 19.1.0
所以我将 build.gradle minSdk 从 19.0.3 更改为 19.1.0 然后出现另一个错误:
错误:FAILURE:构建失败并出现异常。
出了什么问题:在根项目“Finallyariel”中找不到任务“”。
尝试:运行 gradle 任务以获取可用任务列表。使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
我会改变什么来解决这个问题?TIA
这是应用程序中的 build.gradle 文件:
apply plugin: 'android'
description = 'android-pdfview-sample'
android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
versionCode 2
versionName "1.0.1"
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
dependencies {
compile project(':android-pdfview')
provided 'com.googlecode.androidannotations:androidannotations:2.7.1'
compile 'com.googlecode.androidannotations:androidannotations-api:2.7.1'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
库的 build.gradle:
apply plugin: 'android-library'
description = 'android-pdfview'
android {
compileSdkVersion 19
buildToolsVersion '19.0.3'
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
jniLibs.srcDirs = [ 'libs' ]
}
}
}