官网:https://qmuiteam.com/android/get-started
网上的例子很多没有写清楚。
最新的库会上传到 JCenter 仓库上,请确保配置了 JCenter 仓库源,然后直接引用:
compile 'com.qmuiteam:qmui:1.1.3'
至此,QMUI 已被引入项目中。
看下图配置,否则会提示库相关的警告
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) //implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:appcompat-v7:27.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' imple