您的位置:首页 > 移动开发 > Android开发

引入layoutlib.jar

2016-07-25 20:14 447 查看
在android studio中引入layoutlib.jar

def getLayoutLibPath() {

return “${android.getSdkDirectory().getAbsolutePath()}” + “/platforms/” + android.compileSdkVersion + “/data/layoutlib.jar”

}

android {

….

}

dependencies {

compile fileTree(dir: ‘libs’, include: ‘*.jar’)

provided files(getLayoutLibPath())

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android