I have launched my app on play store and receive crash report that app is not running on android version 4.4.2(KITKAT) but running fine on all other devices.
(我已经在Play商店上启动了我的应用,并收到崩溃报告,该应用未在android 4.4.2(KITKAT)版本上运行,但在所有其他设备上运行正常。)
This is activity_welcome.xml code
(这是activity_welcome.xml代码)
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Welcome">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/social_media_hub">
</ImageView>
</RelativeLayout>
''' This is manifest.xml file
('''这是manifest.xml文件)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fareedstudio.android.socialmediahub">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Welcome"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".webviewActivity" />
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
''' This is logcat code
('''这是logcat代码)
Process: com.fareedstudio.android.socialmediahub, PID: 5286 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fareedstudio.android.socialmediahub/com.fareedstudio.android.socialmediahub.Welcome}: android.view.InflateException: Binary XML file line #10: Error inflating class ImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteI
(流程:com.fareedstudio.android.socialmediahub,PID:5286 java.lang.RuntimeException:无法启动活动ComponentInfo {com.fareedstudio.android.socialmediahub / com.fareedstudio.android.socialmediahub.Welcome}:android.view.InflateException:二进制XML文件第10行:在android.app.ActivityThread.access $ 800处将android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)的类ImageView夸大时出错(ActivityThread.java:135)在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1196)在android.os.Handler.dispatchMessage(Handler.java:102)在android.os.Looper.loop(Looper。 android.app.ActivityThread.main(ActivityThread.java:5017)上的java:136)java.lang.reflect.Method.invoke(Method.java:515)上java.lang.reflect.Method.invokeNative(Native Method)在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:779)处com.android.internal.os.ZygoteInit.main(ZygoteI)
nit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class ImageView at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:714) at android.view.LayoutInflater.rInflate(LayoutInflater.java:756) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at android.view.LayoutInflater.inflate(LayoutInflater.java:353) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.fareedstudio.android.socialmediahub.Welcome.onCreate(Welcome.java:17) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) at android.app.ActivityThread.ha (dalvik.system.NativeStart.main(Native方法)处的nit.java:595)原因:android.view.InflateException:二进制XML文件第10行:在android.view.LayoutInflater.createViewFromTag(LayoutInflater.java :714)在android.view.LayoutInflater.rInflate(LayoutInflater.java:756)在android.view.LayoutInflater.inflate(LayoutInflater.java:492)在android.view.LayoutInflater.inflate(LayoutInflater.java:397)在android com的androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)的.view.LayoutInflater.inflate(LayoutInflater.java:353)在com的androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)处。 fareedstudio.android.socialmediahub.Welcome.onCreate(Welcome.java:17)在android.app.Activity.performCreate(Activity.java:5231)在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)在android.app .ActivityThread.performLaunchActivity(ActivityThread.java:2159)在android.app.ActivityThread.ha)
ndleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f070090 a=-1 r=0x7f070090} at android.content.res.Resources.loadDrawable(Resources.java:2073) at android.content.res.TypedArray.getDrawable(TypedArray.java:602) at android.view.View.(View.java:3554) at android.widget (ndleLaunchActivity(ActivityThread.java:2245)在android.app.ActivityThread.access $ 800(ActivityThread.java:135)在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1196)在android.os.Handler.dispatchMessage( android.os.Looper.loop(Looper.java:136)处的Handler.java:102)java.lang.reflect.Method.invokeNative(本机方法)处android.app.ActivityThread.main(ActivityThread.java:5017)处的Handler.java:102)在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:779)处的com.android.internal.os.ZygoteInit.main处的java.lang.reflect.Method.invoke(Method.java:515) (ZygoteInit.java:595)在dalvik.system.NativeStart.main(本机方法)造成原因:android.content.res.Resources $ NotFoundException:资源不是Drawable(颜色或路径):TypedValue {t = 0x1 / d = 0x7f070090 a = -1 r = 0x7f070090}在android.content.res.Resources.loadDrawable(Resources.java:2073)在android.content.res.TypedArray.getDrawable(TypedArray.java:602)在android.view.View 。(View.java:3554)在android.widget)
.ImageView.(ImageView.java:123) at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:72) at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:68) at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:182) at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106) at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266) at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685) at android.view.LayoutInflater.rInflate(LayoutInflater.java:756) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at android.view.LayoutInflater.inflate(LayoutInflater.java:353) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) at android (.ImageView(ImageView.java:123)位于androidx.appcompat.widget.AppCompatImageView。(AppCompatImageView.java:72)位于androidx.appcompat.widget.AppCompatImageView。(AppCompatImageView.java:68)位于androidx.appcompat.app.AppCompatViewInflater androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)的.createImageView(AppCompatViewInflater.java:182)androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1266)的androidx.appcompat.app。 AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1316)位于android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)位于android.view.LayoutInflater.rInflate(LayoutInflater.java:756)位于android.view.LayoutInflater.inflate(LayoutInflater .java:492),位于android.view.LayoutInflater.inflate(LayoutInflater.java:397),位于android.view.LayoutInflater.inflate(LayoutInflater.java:353),位于androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java: 469)在Android)
x.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.fareedstudio.android.socialmediahub.Welcome.onCreate(Welcome.java:17) at android.app.Activity.performCreate(Activity.java:5231) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteIn (com.fareedstudio.android.socialmediahub.Welcome.onCreate(Welcome.java:17)上的x.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)在android.app.Activity.performCreate(Activity.java:5231)在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)在android.app。位于android.app.ActivityThread $ H.handleMessage(Act
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…