1,问题 IDE 项目3.0项目,兼容低版本出现问题
Error:(35, 0) Could not find method testImplementation() for arguments [junit:junit:4.12]
on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. <a href="openFile:D:\QJWork\AlarmDemoProject\app\build.gradle">Open Fi
2,解决方案
① “compile” 替换为 “implementation” ; “api”
② “testCompile” 替换为 “testImplementation” ; “testApi”
③ “androidTestCompile” 替换为 “androidTestImplementation” “androidTestApi”
④ “androidTestApi” 替换为 “androidTestImplementation”
⑤ “testApi” 替换为 “testImplementation”