初學安卓,用的studio2.2.2,運行模擬器的時候出現(xiàn)圖中的錯誤信息...不知道是怎么回事...編譯器版本:jdk1.8,sdk 25,Gradle version 2.14.1Android Plugin Version2.2.2另外創(chuàng)建新項目的時候會出錯,Message里提示Error:Failed to resolve: javax.annotation:javax.annotation-api:1.2依賴里默認是這樣的...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:25.0.0'
????testCompile?'junit:junit:4.12'
}把 androidTestCompile的改成 'junit:junit:4.12'就不報錯了,這又是什么原因?
添加回答
舉報
0/150
提交
取消