1
當我創建Android Studio中新的項目,我收到錯誤:JUnit的錯誤創造了機器人工作室新項目時
,這是代碼,當我在項目上顯示點擊:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "org.ashiyane.sepehr"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
}
可能的重複[Error:(23,17 )未能解決:junit:junit:4.12](http://stackoverflow.com/questions/32519219/error23-17-failed-to-resolve-junitjunit4-12) – AndroidMechanic
請閱讀[this(how to ask)] (http://stackoverflow.com/help/how-to-ask)和 [this(mcve)](http://stackoverflow.com/help/mcve)之前詢問, 這些將幫助您獲得更多來自社區的更好答案。切勿在圖像中添加代碼,或者在圖像中添加鏈接......大多數人不會檢查它,看到它可以幫助解決問題。 – Bonatti