언제든지 테스트 장치로 내 넥서스를 사용하려고하면 앱이 다운되고이 오류가 표시됩니다. 나는 그 문제가 어디 있는지 모른다. E/AndroidRuntime : 치명적인 예외 : 주 프로세스 : com.delta.bartalk, PID : 13668 java.lang.RuntimeException : 활동을 시작할 수 없습니다. ComponentInfo {com.delta.bartalk/com.delta.bartalk.BartalkActivity} : android .content.res.Resources $ NotFoundException : 자원 ID 번호 android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2387) 에서 android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2325) 에서 0x7f020000 android.app에서 android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1303) android.os.Handler.dispatchMessage (Handler.java:102)에서 안드로이드에서 에서 .ActivityThread.access $ 800 (ActivityThread.java:151) . os.Looper.loop (Looper.java:135) android.app.ActivityThread.main (ActivityThread.java:5254) at java.lang.reflect.Method.invoke (기본 메소드) at java.lang.reflect.Method.invoke (Method.java:372) com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:698) 원인 : android.content.res .Resources $ NotFoundException : 리소스 ID # 0x7f020000 android.content.res.Resources.getValue (Resources.java:1266) at android.content.res.Resources.getDrawable (Resources.java:785) android.content .Context.getDrawable (Context.java:403) at com.android.internal.widget.ActionBarView.setIcon (ActionBa com.android.internal.policy.impl.PhoneWindow.setDefaultIcon (PhoneWindow.java:1646) 에서 com.android.internal.widget.ActionBarOverlayLayout.setIcon (ActionBarOverlayLayout.java:738) 에서 rView.java:684) 에서 android.app.Activity.initWindowDecorActionBar (Activity.java:2131) and35.ab.Activity.setContentView android.app.Activity.performCreate (Activity.java:5990) android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1106)에서 android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2278)에서 로이드에서 . app.ActivityThread.handleLaunchActivity (Activ ityThread.java:2387) android.app.ActivityThread.access $ 800 (ActivityThread.java:151) at android.app.ActivityThread $ H.handleMessage (ActivityThread.java:1303) android.os.Handler.dispatchMessage (Handler.java:102) android.os.Looper.loop (Looper.java:135) android.app.ActivityThread.main (ActivityThread.java:5254) at java.lang.reflect.Method.invoke (네이티브 메소드) at java.lang.reflect.Mava.372) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java:903) at com.android. internal.os.ZygoteInit.main (ZygoteInit.java:698)앱이 계속 충돌합니다. 어떤 아이디어?
은/* 이것은 내가 아주 확실하지 않다 activity_bartalk.xml의 시작 오류가있을 수있는 곳이 임 * 난 당신이 중 하나가 ID의 실제로없는 자원 생각/
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
tools:context=".BartalkActivity">
<!-- The primary full-screen view. This can be replaced with whatever view
is needed to present your content, e.g. VideoView, SurfaceView,
TextureView, etc. -->
<com.delta.bartalk.AutoResizeTextView
android:id="@+id/fullscreen_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:textColor="#bc7ff6"
android:textStyle="bold"
android:maxLines="2"
android:textSize="600sp"
android:gravity="center"
android:text="@string/bartalk" />
<!-- This FrameLayout insets its children based on system windows using
android:fitsSystemWindows. -->
<FrameLayout android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
<LinearLayout android:id="@+id/fullscreen_content_controls"
style="?metaButtonBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:background="@color/black_overlay"
android:orientation="horizontal"
tools:ignore="UselessParent">
<EditText android:id="@+id/input_text"
style="?metaButtonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"``
android:hint="@string/what_do_you_want_to_say" />
</LinearLayout>
</FrameLayout>
</FrameLayout>
안녕하세요. 적어도 충돌이 발생하기 전에 무엇을하고 있었는지 설명하십시오. – FiN
코드를 보여주세요! logcat을 기반으로 BartalkActivity의 oncreate 메소드에 필요한 리소스 (ID # 0x7f020000)가 없습니다. 이것이 우리가 읽을 수있는 것입니다. –
'Resources $ NotFoundException' ... [mcve]에 코드와 Gradle 파일을 표시하십시오 –