AndroidManifest.xml에서 아래 붉은 부분을 새로 넣었는데 에러가뜨네요
error: Error: No resource found that matches the given name
(at 'theme' with value '@android:style/Theme_Light"). AndroidManifest.xml /HelloAndroid line 6 Android AAPT Problem
HelloAndroid.java
package com.company.helloandroid;
import android.app.Activity;
import android.os.Bundle;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Light); // 이부분도 제가 임의로 추가
setContentView(R.layout.main);
}
}
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.company.helloandroid"
android:versionCode="1"
android:versionName="1.0.0">
<application android:theme="@android:style/Theme_Light"></application>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".HelloAndroid"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
전에 올릴때 오타있는 것을 올려서 그부분을 집어주시더라구요;; 그건 질문할 때 제가 오타로 올린것이라 다시 질문합니다;;(죄송;)
어떤부분을 추가해야 노란색부분의 에러가 안뜨고 실행될까요?
xml에서는 _ 대신에 .으로 해야 합니다.