์ค๋์ ์๋ฌ๋ ๋ฐ๋ก ํด๋์ค๋ฅผ ์ฐพ์ ์ ์์ ๋ ๋จ๋ ๋ฒ๊ทธ๋ฅผ ํด๊ฒฐํ๋ ๋ฐฉ๋ฒ์ ์์๋ณด๊ฒ ๋ค.
์๋ฌ ๋ฌธ๊ตฌ
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.community/com.example.community.MainActivity}: java.lang.ClassNotFoundException: Didn't find class
"com.example.community.MainActivity" on path: DexPathList[[zip file "/data/app/~~Tv8GPXV34ciClaHYGt-_Gg==/com.example.community-9AL2Z2ybv12CTGrbGEP6mQ==/base.apk"],
nativeLibraryDirectories=[/data/app/~~Tv8GPXV34ciClaHYGt-_Gg==/com.example.community-9AL2Z2ybv12CTGrbGEP6mQ==/lib/x86, /system/lib, /system_ext/lib]]
๋์ ๊ฒฝ์ฐ์๋ ์ด ์๋ฌ๋ฅผ ํด๊ฒฐํ ๋ manifest์ ์ญ์ ์ํจ activity๋ฅผ ์ง์ฐ์ง ์์์ ๋ฐ์ํ ์๋ฌ์๋ค
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.community">
<application
... >
// ์ง์ด ๋ถ๋ถ
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
//
</application>
</manifest>
์์ฐ๋ activity๋ฅผ ์ง์์ ๊น๋ํ ํด๊ฒฐ๋์๋ค.
728x90