このライブラリをインポートした後: 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 に変更すると、別のエラーが発生します。
Error:FAILURE: ビルドが例外で失敗しました。
問題: タスク '' がルート プロジェクト 'Finallyariel' に見つかりません。
試してみてください: gradle tasks を実行して、利用可能なタスクのリストを取得してください。--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' ]
}
}
}