[안드로이드] error: package R does not exist


error: package R does not exist 는 매니페스트 파일에 액티비티를 적어 주지 않았을 때에 발생합니다.

아래와 같은 식으로 AndroidManifest.xml 파일 안에 액티비티를 적어 주셔야 합니다.


<application>

    ...

    <activity android:name=".MyLovelyActivity"></activity>    

</application>


The processing instruction target matching "[xX][mM][lL]" is not allowed.


XML 파일이 파일 선언으로 시작되지 않을 때 나오는 오류 메시지입니다.

파일의 맨 처음 부분에 공백이나 주석이 있으면 이런 오류가 발생합니다.

+ Recent posts