build.gradle
dependencies { //implementation fileTree(include: ['*.jar'], dir: 'libs') 把这段注释掉 implementation 'com.android.support:appcompat-v7:26.1.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' compileOnly files('libs/classes.jar')//设置为只在编译时使用 implementation files('libs/Msc.jar') compileOnly files('libs/bdgame.jar') }