2016-08-29 2 views
1

은 그냥이블랙 활동주는 오류 안드로이드 스튜디오

error: cannot resolve symbol appcompatactivity,oncreate.Further it shows message "Error:A problem occurred configuring project ':app'.

을 제공 안드로이드 스튜디오 2.1.3 .Every 시간을 다운로드 junit.jar를 다운로드 할 수 없습니다

(JUnit을 : JUnit을 : 4.12) 수 없음 리소스 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar'을 가져옵니다. java.lang.NullPointerException이 (오류 메시지) " 는 플러그인을 적용 'com.android.application를'

android { 
    compileSdkVersion 24 
    buildToolsVersion "24.0.2" 

    defaultConfig { 
     applicationId "com.example.prateek.myapplication" 
     minSdkVersion 23 
     targetSdkVersion 24 
     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:24.2.0' 
} 
+1

을 테스트를 통해 앱 모듈의'build.gradle'에서 종속성을 제거 할 수 있습니다. 'black activity'는 무엇입니까? – Shaishav

+0

post gradle file. –

답변

1

그 라인 제거해보십시오 : 당신이 장치를 작성하지 않는 경우

testCompile 'junit:junit:4.12' 
관련 문제