SildingMenu在androidstudio上面的安裝
下載的 SlidingMenu 開源框架包解壓縮之後的到的文件夾
複製library文件夾
直接粘貼到項目中 和APP文件夾平級
然後選擇settings.gradle中添加如下
include ':app', ':library'
然後在APP 的bulid.gradle中添加依賴如下
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile project(':library')
}
選擇sync now 同步之後出現很多問題
然後根據APP bulid.gradle 修改library中的build.gradle如下
dependencies {
compile 'com.android.support:support-v4:13.0.0'
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 20
targetSdkVersion 23
}
修改後try again 然後會提示一個錯誤改成Math就可以了
修改完成之後 build project 就可以正常使用了
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.