为什么 Android Studio 应用程序仅在 Android 版本 11 中运行并且它们不运行其他移动版本

发布于 2025-01-16 11:02:57 字数 12361 浏览 2 评论 0原文

<预><代码> @Override protected void onCreate(Bundle savingInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); auth = FirebaseAuth.getInstance(); 对话框 = new ProgressDialog(this); dialog.setMessage("请稍候..."); 电子邮件 = findViewById(R.id.email); 密码 = findViewById(R.id.password); 登录输入 = findViewById(R.id.loginenter); loginenter.setOnClickListener(this); 注册 = findViewById(R.id.register); 忘记密码 = findViewById(R.id.忘记密码); register.setOnClickListener(this); 忘记密码.setOnClickListener(this); } @覆盖 公共无效onClick(查看v){ 对话框.show(); 开关 (v.getId()){ 案例R.id.注册: startActivity(new Intent(this, SignupActivity.class)); 休息; > //错误[android版本错误][1] 03/22 12:04:08:在 OPPO CPH1923 上启动“应用程序”。 安装在 14 秒 86 毫秒内成功完成。 $ adb shell am start -n "com.example.together/com.example.together.MainActivity" -a

android.intent.action.MAIN -c android.intent.category.LAUNCHER 连接到设备“oppo-cph1923-CQI7GYHUFI9HAENR”上的进程 23620。 从应用程序捕获并显示 logcat 消息。可以在“Logcat 输出”部分禁用此行为 “调试器”设置页面。 V / ColorAnimationUtils:ColorAnimationUtils这个=:com.color.util.ColorAnimationUtils@a915b45 V/ColorAnimationUtils: initData mEnableAnimation =: false mData =:null,data =: com.color.util.ColorAnimationData@611129a,这个 =:com.color.util.ColorAnimationUtils@a915b45 I/FirebaseApp:设备已解锁:初始化应用程序的所有 Firebase API [默认] I/FirebaseInitProvider:FirebaseApp 初始化成功 W/xample.togethe:创建 CommonDcsHelper W/xample.togethe:cacheJniMembers 成功 W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏字段 Landroid/os/Trace;->TRACE_TAG_APP:J(浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/os/Trace;->isTagEnabled(J)Z(浅灰名单、反射) E/ANR_LOG:>> msg执行时间太长 E/ANR_LOG:阻止的消息= {when=-3s60ms What=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{a9c47f1 com.example.together}} } ,成本 = 2918 毫秒 E/ANR_LOG:>>当前消息列表是: E/ANR_LOG:当前消息<1> = { 当=-3s51ms 什么=159 target=android.app.ActivityThread$H obj=ClientTransaction hashCode, mActivityToken = android.os.BinderProxy@7dc3fd6 } E/ANR_LOG:当前消息<2> = { 当=-2s369ms 什么=149 目标=android.app.ActivityThread$H obj=android.os.BinderProxy@7dc3fd6 } E/ANR_LOG:当前消息<3> = { 当=+9s993ms 什么=132 目标=android.app.ActivityThread$H } E/ANR_LOG:>>当前 MSG 转储超过<<< I/FirebaseAuth: [FirebaseAuth:] 准备创建到后备实现的服务连接 W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏字段 Landroid/graphics/Insets;->left:I(浅灰名单,链接) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏字段 Landroid/graphics/Insets;->top:I(浅灰名单,链接) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏字段 Landroid/graphics/Insets;->right:I(浅灰名单,链接) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏字段 Landroid/graphics/Insets;->bottom:I(浅灰名单,链接) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light 灰名单、反射) D/MMListParser: +++initMMListConfigFile gInitDone 0 D/MMListParser: onlineVersion -1 defaultVersion 20191107 D/OpenGL渲染器:Skia GL 管道 I/SurfaceFactory:[静态] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@e828b0d D/WindowClient: 添加到 mViews: DecorView@cc70410[MainActivity], this = android.view.WindowManagerGlobal@859cb09,pkg = com.example.together D/ViewRootImpl[MainActivity]: 硬件加速 = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false,sSystemRendererDisabled = false I/InputTransport:创建 ARC 句柄:0x7d64903200 V/PhoneWindow: DecorView setVisiblity: 可见性 = 0, Parent = android.view.ViewRootImpl@c0e610e, this = DecorView@cc70410[MainActivity] D/libARC: etEventThreadFunc()::线程开始。事件引用计数:1 我/编舞:跳了两帧!应用程序可能在其主线程上做了太多工作。 D/Surface:Surface::allocateBuffers(this=0x7d6490a000) D/libEGL: ARC_TRACE: arc_initARCTraceLevel D/libEGL:活动 EGL 表是 EglArcHook 我/编舞:跳了5帧!应用程序可能在其主线程上做了太多工作。 E/GED:无法获取 GED 日志缓冲区,错误(0) I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay 检索到:0 I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay 检索到:0 I/OpenGLRenderer:初始化的 EGL,版本 1.4 D/OpenGLRenderer:交换行为 2 D/libEGL:[GIFT] 干净的 GIFT 位 (0) I/libARC:gli_eglCreateContextRet() tid:23800,ctx:0x7d703b5880,ARC 未启用。 D/libEGL: ARC_TRACE: ARC_eglCreateContext() => ctx:0x7d703b5880 D/表面:表面::连接(this=0x7d6490a000,api=1) E/ion:ioctl c0044901 失败,代码为 -1:参数无效 E/GED:无法获取 GED 日志缓冲区,错误(0) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (light 灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (light 灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V (light 灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/FontFamily;->()V(浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/FontFamily;->freeze()Z(浅灰名单、反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/FontFamily;->abortCreation()V(浅灰名单, 反射) W/xample.togethe:构造JavaHashMap:开始 W/xample.togethe:构造JavaHashMap:结束 W/xample.togethe:sendCommonDcs:开始 W/xample.togethe:sendCommonDcs:结束 W/xample.togethe:访问隐藏方法 Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (浅灰名单、反射) W/ActivityThread:handleWindowVisibility:令牌没有活动 android.os.BinderProxy@69f872 D/AndroidRuntime:关闭虚拟机 E/AndroidRuntime:致命异常:main 进程:com.example.together,PID:23620 java.lang.RuntimeException:无法启动活动 ComponentInfo{com.example.together/com.example.together.login}: android.view.InflateException:二进制 XML 文件第 26 行:二进制 XML 文件行 #26:膨胀类时出错 在 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3201) 在 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3338) 在 android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 在 android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113) 在 android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71) 在 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2029) 在 android.os.Handler.dispatchMessage(Handler.java:106) 在 android.os.Looper.loop(Looper.java:233) 在 android.app.ActivityThread.main(ActivityThread.java:7212) 在 java.lang.reflect.Method.invoke(本机方法) 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) 引起原因:android.view.InflateException:二进制 XML 文件第 #26 行:二进制 XML 文件第 #26 行:错误膨胀类 引起原因:android.view.InflateException:二进制 XML 文件行 #26:错误膨胀类 引起原因:java.lang.reflect.InitationTargetException 在 java.lang.reflect.Constructor.newInstance0(本机方法) 在 java.lang.reflect.Constructor.newInstance(Constructor.java:343) 在 android.view.LayoutInflater.createView(LayoutInflater.java:652) 在 com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58) 在 android.view.LayoutInflater.onCreateView(LayoutInflater.java:730) 在 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:813) 在 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740) 在 android.view.LayoutInflater.rInflate(LayoutInflater.java:890) 在 android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:851) 在 android.view.LayoutInflater.inflate(LayoutInflater.java:515) 在 android.view.LayoutInflater.inflate(LayoutInflater.java:423) 在 android.view.LayoutInflater.inflate(LayoutInflater.java:374) 在 androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:706) 在 androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195) 在 com.example.together.login.onCreate(login.java:34) 在 android.app.Activity.performCreate(Activity.java:7376) 在 android.app.Activity.performCreate(Activity.java:7367) 在 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271) 在 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3181) 在 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3338) 在 android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 在 android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113) 在 android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71) 在 android.app.ActivityThread$H.handleMessage(ActivityThread.java:2029) 在 android.os.Handler.dispatchMessage(Handler.java:106) 在 android.os.Looper.loop(Looper.java:233) 在 android.app.ActivityThread.main(ActivityThread.java:7212) 在 java.lang.reflect.Method.invoke(本机方法) 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499) 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) 导致:android.content.res.Resources$NotFoundException:Drawable com.example.together:drawable/inner_layout 和资源 ID #0x7f080095 导致:android.content.res.Resources$NotFoundException:文件 res/drawable/inner_layout.xml 来自可绘制资源 ID #0x7f080095 在 android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:1001) E/AndroidRuntime:位于 android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:764) 在 android.content.res.Resources.loadDrawable(Resources.java:943) 在 android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:955) 在 android.content.res.TypedArray.getDrawable(TypedArray.java:930) 在 android.view.View.(View.java:5090) 在 android.view.ViewGroup.(ViewGroup.java:670) 在 android.widget.LinearLayout.(LinearLayout.java:244) 在 android.widget.LinearLayout.(LinearLayout.java:240) 在 android.widget.LinearLayout.(LinearLayout.java:236) 在 java.lang.reflect.Constructor.newInstance0(本机方法) 在 java.lang.reflect.Constructor.newInstance(Constructor.java:343)

     @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_login);
    
            auth = FirebaseAuth.getInstance();
    
            dialog = new ProgressDialog(this);
            dialog.setMessage("Please Wait.... ");
    
           email  = findViewById(R.id.email);
    
            password = findViewById(R.id.password);
    
            loginenter = findViewById(R.id.loginenter);
            loginenter.setOnClickListener(this);
    
            register = findViewById(R.id.register);
    
            forgetpassword = findViewById(R.id.forgetpassword);
    
            register.setOnClickListener(this);
    
            forgetpassword.setOnClickListener(this);
    
        }
    
        @Override
        public void onClick(View v) {
            dialog.show();
            switch (v.getId()){
                case R.id.register:
                    startActivity(new Intent(this, SignupActivity.class));
                    break;

  

> //Error[Error on android version][1]

    03/22 12:04:08: Launching 'app' on OPPO CPH1923.
    Install successfully finished in 14 s 86 ms.
    $ adb shell am start -n "com.example.together/com.example.together.MainActivity" -a

android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 23620 on device 'oppo-cph1923-CQI7GYHUFI9HAENR'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the
"Debugger" settings page.
V/ColorAnimationUtils: ColorAnimationUtils this =:com.color.util.ColorAnimationUtils@a915b45
V/ColorAnimationUtils: initData mEnableAnimation =: false
mData =:null,data =: com.color.util.ColorAnimationData@611129a,this
=:com.color.util.ColorAnimationUtils@a915b45
I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT]
I/FirebaseInitProvider: FirebaseApp initialization successful
W/xample.togethe: create CommonDcsHelper
W/xample.togethe: cacheJniMembers success
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden field Landroid/os/Trace;->TRACE_TAG_APP:J (light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (light greylist, reflection)
E/ANR_LOG: >>> msg's executing time is too long
E/ANR_LOG: Blocked msg = { when=-3s60ms what=110 target=android.app.ActivityThread$H
obj=AppBindData{appInfo=ApplicationInfo{a9c47f1 com.example.together}}
} , cost = 2918 ms
E/ANR_LOG: >>>Current msg List is:
E/ANR_LOG: Current msg <1> = { when=-3s51ms what=159 target=android.app.ActivityThread$H obj=ClientTransaction hashCode,
mActivityToken = android.os.BinderProxy@7dc3fd6 }
E/ANR_LOG: Current msg <2> = { when=-2s369ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@7dc3fd6
}
E/ANR_LOG: Current msg <3> = { when=+9s993ms what=132 target=android.app.ActivityThread$H }
E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<<
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z
(light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light
greylist, reflection)
D/MMListParser: +++initMMListConfigFile gInitDone 0
D/MMListParser: onlineVersion -1 defaultVersion 20191107
D/OpenGLRenderer: Skia GL Pipeline
I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@e828b0d
D/WindowClient: Add to mViews: DecorView@cc70410[MainActivity], this =
android.view.WindowManagerGlobal@859cb09, pkg = com.example.together
D/ViewRootImpl[MainActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false,
forceHwAccelerated = false, sSystemRendererDisabled = false
I/InputTransport: Create ARC handle: 0x7d64903200
V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@c0e610e, this = DecorView@cc70410[MainActivity]
D/libARC: etEventThreadFunc()::thread Begin. eventRefCnt: 1
I/Choreographer: Skipped 2 frames! The application may be doing too much work on its main thread.
D/Surface: Surface::allocateBuffers(this=0x7d6490a000)
D/libEGL: ARC_TRACE: arc_initARCTraceLevel
D/libEGL: Active EGL Table is EglArcHook
I/Choreographer: Skipped 5 frames! The application may be doing too much work on its main thread.
E/GED: Failed to get GED Log Buf, err(0)
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay
retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay
retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/libEGL: [GIFT] clean GIFT bit (0)
I/libARC: gli_eglCreateContextRet() tid:23800, ctx: 0x7d703b5880, ARC not Enabled.
D/libEGL: ARC_TRACE: ARC_eglCreateContext() => ctx: 0x7d703b5880
D/Surface: Surface::connect(this=0x7d6490a000,api=1)
E/ion: ioctl c0044901 failed with code -1: Invalid argument
E/GED: Failed to get GED Log Buf, err(0)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (light
greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (light
greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V (light
greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/FontFamily;->()V (light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z
(light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z
(light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist,
reflection)
W/xample.togethe: constructJavaHashMap: start
W/xample.togethe: constructJavaHashMap: end
W/xample.togethe: sendCommonDcs: start
W/xample.togethe: sendCommonDcs: end
W/xample.togethe: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface;
(light greylist, reflection)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@69f872
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.together, PID: 23620
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.together/com.example.together.login}:
android.view.InflateException: Binary XML file line #26: Binary XML
file line #26: Error inflating class
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3201)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3338)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2029)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:7212)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class
Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:652)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:730)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:813)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:740)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:890)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:851)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:706)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
at com.example.together.login.onCreate(login.java:34)
at android.app.Activity.performCreate(Activity.java:7376)
at android.app.Activity.performCreate(Activity.java:7367)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3181)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3338)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2029)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:7212)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: android.content.res.Resources$NotFoundException: Drawable
com.example.together:drawable/inner_layout with resource ID
#0x7f080095
Caused by: android.content.res.Resources$NotFoundException: File
res/drawable/inner_layout.xml from drawable resource ID #0x7f080095
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:1001)
E/AndroidRuntime: at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:764)
at android.content.res.Resources.loadDrawable(Resources.java:943)
at android.content.res.TypedArray.getDrawableForDensity(TypedArray.java:955)
at android.content.res.TypedArray.getDrawable(TypedArray.java:930)
at android.view.View.(View.java:5090)
at android.view.ViewGroup.(ViewGroup.java:670)
at android.widget.LinearLayout.(LinearLayout.java:244)
at android.widget.LinearLayout.(LinearLayout.java:240)
at android.widget.LinearLayout.(LinearLayout.java:236)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别念他 2025-01-23 11:02:57

java.lang.RuntimeException:无法启动活动 ComponentInfo{com.example.together/com.example.together.login}:android.view.InflateException:二进制 XML 文件第 26 行:二进制 XML 文件第 26 行:错误膨胀类

引起:android.content.res.Resources$NotFoundException:文件 res/drawable/inner_layout.xml

看起来像你的inner_layout.xml 放置在某个 drawable-... 文件夹(密度桶)中,在不同屏幕参数的设备上可能不可用(与 Android 版本完全无关) )。这个文件可能应该放在 drawable 文件夹中(没有 -... 后缀)

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.together/com.example.together.login}: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class

Caused by: android.content.res.Resources$NotFoundException: File res/drawable/inner_layout.xml

looks like your inner_layout.xml is placed in some drawable-... folder (density bucket), which may be unavailable on devices with different screen params (not related to Android version at all). this file probably should be placed in drawable folder (without -... suffix)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文