문제

For example, When I want to create a reference type of TextView :

TextView tv;

I receive an error which tells me to import android.widget.TextView.

Now, I know how the whole Import packages concept works, but I always wondered how does the Content Assist of eclipse displays the TextView Class of android BEFORE I imported it to my project? how it knows it even exists and how it know it exists in android.widget.TextView.

Thanks!

도움이 되었습니까?

해결책

because you have already imported the android library into your project. you can try this: open project properties -> click Java Build Path -> choose Libraries -> remove android library. then content assist will not work.

다른 팁

This is because you must have installed the Android SDK in eclipse. And as part of the sdk that class is available to eclipse and it provides it as part of code assist.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top