How do I add a library project to Android Studio?

前端 未结 30 3906
梦谈多话
梦谈多话 2020-11-21 04:24

How do I add a library project (such as Sherlock ABS) to Android Studio?

(Not to the old ADT Eclipse-based bundle, but to the new Android Studio.)

30条回答
  •  甜味超标
    2020-11-21 04:50

    To resolve this problem, you just need to add the abs resource path to your project build file, just like below:

    sourceSets {
        main {
            res.srcDirs = ['src/main/res','../../ActionBarSherlock/actionbarsherlock/res']
        }
    }
    

    So, I again compile without any errors.

提交回复
热议问题