Unity3D facebook android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x40a461f8)
FATAL EXCEPTION: main
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 4.1.2f1
Device model : Acer A500
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Test.unityandroidfacebookjar/com.facebook.LoginActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
at android.content.res.Resources.getValue(Resources.java:1019)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2107)
at android.content.res.Resources.getLayout(Resources.java:858)
at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:255)
at android.app.Activity.setContentView(Activity.java:1835)
at com.facebook.LoginActivity.onCreate(LoginActivity.java:55)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
이미 유니티3D 페이스북 안드로이드 연동을 마무리한 상태에서 정리안된 추가적인 이슈를 일부러 만들어봤습니다.
페이스북 안드로이드 SDK의 res 디렉터리를 유니티3D 프로젝트의 Assets\Plugins\Android 디렉터리에 복사해줘야 위 에러가 발생하지 않습니다.
threadid=1: thread exiting with uncaught exception (group=0x40a461f8)
FATAL EXCEPTION: main
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 4.1.2f1
Device model : Acer A500
Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Test.unityandroidfacebookjar/com.facebook.LoginActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030001
at android.content.res.Resources.getValue(Resources.java:1019)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2107)
at android.content.res.Resources.getLayout(Resources.java:858)
at android.view.LayoutInflater.inflate(LayoutInflater.java:394)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:255)
at android.app.Activity.setContentView(Activity.java:1835)
at com.facebook.LoginActivity.onCreate(LoginActivity.java:55)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
이미 유니티3D 페이스북 안드로이드 연동을 마무리한 상태에서 정리안된 추가적인 이슈를 일부러 만들어봤습니다.
페이스북 안드로이드 SDK의 res 디렉터리를 유니티3D 프로젝트의 Assets\Plugins\Android 디렉터리에 복사해줘야 위 에러가 발생하지 않습니다.
댓글
댓글 쓰기