2017-05-01 14 views
-2

V7 라이브러리 가져 cannt내가이 APPCOMPAT v7의 도서관이 import 문을 추가하려고하면 왜 내 안드로이드 스튜디오, AppCompactActivity 기호를 확인할 수 없습니다 알고 싶어

import android.support.v7.app.AppCompatActivity; 

회색으로 나타나되지 않는 import 문 을 말한다

compile "com.android.support:support-v4:${androidSupportLibraryVersion}" 
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.18' 
compile 'de.cketti.library.changelog:ckchangelog:1.2.1' 
compile 'com.github.bumptech.glide:glide:3.6.1' 
compile 'com.splitwise:tokenautocomplete:2.0.7' 
compile 'de.cketti.safecontentresolver:safe-content-resolver-v14:0.9.0' 
compile 'com.squareup.moshi:moshi:1.2.0' 
compile "com.jakewharton.timber:timber:${timberVersion}" 

androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2' 

testCompile "org.robolectric:robolectric:${robolectricVersion}" 
testCompile "junit:junit:${junitVersion}" 
testCompile "org.mockito:mockito-core:${mockitoVersion}" 
testCompile 'org.jsoup:jsoup:1.10.2' 
:과 붉은 색과 V7은 다음과 같이 말한다 symbol'v7 '

import android.support.v7.app.AppCompatActivity; 

    public class speech extends AppCompatActivity 

build.grade를 확인할 수 없습니다

어떻게 해결할 수 있습니까?

+1

가능한 중복으로 다시 시작 (http://stackoverflow.com/questions [APPCOMPAT/안드로이드 스튜디오와 라이브러리를 추가]/18364135/appcompat-add-a-library-with-android-studio) –

답변

0

Gradel 파일에 AppCompat 라이브러리를 추가하십시오.

compile "com.android.support:support-v4:${androidSupportLibraryVersion}" 
compile "com.android.support:appcompat-v7:${androidSupportLibraryVersion}" 
compile "com.android.support:support-annotations:${androidSupportLibraryVersion}" 

때때로 안드로이드 스튜디오 캐시의 도움을 삭제. 안드로이드 스튜디오에서

난 그냥 캐시를 삭제하고 다음과 같은 다만 Option--

File->Invalidate Caches/Restart