在学习《第一行代码:Android篇》时,做书中的Demo,案例是:打开app/build.gradle文件,在dependencies闭包中添加如下内容:dependencies{compilefileTree(dir:'libs',include:['*.jar'])compile'com.android.support:appcompat-v7:24.2.1'compile'com.android.support:percent:24.2.1'testCompile'junit:junit:4.12'}此时,AndroidStudio已经帮助检查出是过时了:经过上网查阅,找到报错原因:由