第一行代码中的添加百分比布局库依赖问题

找到android SDK的文件夹I:\AndroidSDk\extras\android\m2repository\com\android\support\percent
在这里就能看到各种版本的,这里我选择26的26.0.0-alpha1,重新导入,之后重新Sync就可以了!



dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:percent:26.0.0-alpha1'
testCompile 'junit:junit:4.12'
}
posted @ 2019-01-23 14:25  王怀宇  阅读(829)  评论(1编辑  收藏  举报