简体   繁体   English

签名的 apk 不适用于低于 7.1.* 的设备

[英]Signed apk not working on devices below 7.1.*

I added a described question sometime ago, Signed APK, “App not installed” in some devices, and in some devices same apk is working fine The issue is stil unsolved我前段时间添加了一个描述的问题, 签名 APK,在某些设备中“未安装应用程序”,在某些设备中相同的 apk 工作正常问题仍未解决

But just now I noticed that it is working fine on android devices on version 7.1.* and above, but below that it isn' working.但刚才我注意到它在 7.1.* 及更高版本的 android 设备上运行良好,但低于它则无法运行。 Even it isn't working on emulator with MarshMallow.即使它不适用于带有 MarshMallow 的模拟器。 But I have set the minimum sdk on 18, so it should work fine.但是我已经将最小 sdk 设置为 18,所以它应该可以正常工作。 You can the Manifest, Gradle(app and project level) files on the questioon I provided link to.您可以在我提供链接的问题上查看清单、Gradle(应用程序和项目级别)文件。

For layout failures, you need to read the cause of the cause of the cause (etc) in your stack trace until you find the original error.对于布局失败,您需要在堆栈跟踪中读取原因(等)的原因,直到找到原始错误。

According to the stack trace, the issue is with your resource drawable/car_background .根据堆栈跟踪,问题在于您的资源drawable/car_background

Caused by: android.content.res.Resources$NotFoundException: Resource "com.diginfoexpert.MBAutodeals:drawable/car_background" (7f070069) is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f070069 a=-1 r=0x7f070069}

I'm not really sure why the issue would present on 7.1 devices.我不确定为什么这个问题会出现在 7.1 设备上。 The only hint that may or may not be relevant according to 7.1 release notes is added support for circular launcher icons .根据 7.1 发行说明可能相关或可能不相关的唯一提示是添加了对圆形启动器图标的支持。 I don't really see anything in 7.0 either.我也没有在 7.0 中看到任何东西。

Couple other off hand possibilities:一些其他的临时可能性:

  • Maybe you are using a vector asset and it is malformed.也许您正在使用矢量资产并且它的格式不正确。
  • Maybe you are using a vector asset and not using app:srcCompat .也许您正在使用矢量资源而不是app:srcCompat
  • Maybe you have an invalid file of name car_background in an API specific resource bucket.也许您在 API 特定资源桶中有一个名为car_background的无效文件。

Hopefully, this will get you on the right track.希望这能让你走上正轨。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM