-概要-
AndroidStudioにて、android bootstrapを外部ライブラリとして
導入使用とした際にエラーが発生しました。
-環境-
Android studioバージョン:1.4
導入したandroidbootstrapバージョン:2.0.1
-android bootstrap導入手順-
0. Android Studio起動
-
File>Project Stracture>Dependenceisを開く
-
「+」ボタンでLibrary dependencyを選択し、「Choose Library Dependency」にて
「com.beardedhen:androidbootstrap:2.0.1」を選択する
4.終了
-エラー内容-
導入が完了した状態でビルドをすると以下のエラーが表示される。
clean project しても rebuild projectしても解消されませんでした。
ググって、android sdkのver23.1.1がインストールが関係しているらしい
ことを知り確認したが、sdkはきちんとver23.1.1がインストールされていました。
ちなみnbuild.gradleファイルの内容は以下の通りです。
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig { applicationId "com.support.qualifications.getqualifications" minSdkVersion 16 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions{ exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/NOTICE' exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/DEPENDENCIES.txt' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.0'
// holographlibraryライブラリの追加
// compile 'com.echo:holographlibrary:1.0'
compile 'com.android.support:design:23.0.1'
// 図を表示する外部ライブラリ
compile files('libs/mpandroidchartlibrary-2-1-6.jar')
compile files('libs/httpmime-4.5.1.jar')
compile files('libs/httpcore-4.4.3.jar')
compile files('libs/httpclient-cache-4.5.1.jar')
compile files('libs/httpclient-4.5.1.jar')
compile files('libs/commons-logging-1.2.jar')
compile files('libs/commons-codec-1.9.jar')
compile 'com.beardedhen:androidbootstrap:2.0.1'//今回導入した箇所
}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。