Giter Site home page Giter Site logo

Comments (9)

chenmingyin avatar chenmingyin commented on August 19, 2024

我的ViewBinding版本是7.3.1,androidx.databinding:viewbinding:7.3.1@aar

from androidbaseframemvvm.

Quyunshuo avatar Quyunshuo commented on August 19, 2024

项目有没有开启代码压缩混淆

from androidbaseframemvvm.

chenmingyin avatar chenmingyin commented on August 19, 2024

没有

from androidbaseframemvvm.

chenmingyin avatar chenmingyin commented on August 19, 2024

const val compileSdkVersion = 33
const val buildToolsVersion = "33.0.1"
const val minSdkVersion = 21
const val targetSdkVersion = 33

from androidbaseframemvvm.

Quyunshuo avatar Quyunshuo commented on August 19, 2024

这样,你先打个断点看下具体走的哪个异常,看一下堆栈信息

from androidbaseframemvvm.

chenmingyin avatar chenmingyin commented on August 19, 2024

走的是这个异常,
catch (e: InvocationTargetException) { e.printStackTrace() }
堆栈里面的detailMessage:
Binary XML file line #26 in com.xxx.xxx:layout/main_act_main_page: Binary XML file line #26 in com.xxx.xxx:layout/main_act_main_page: Error inflating class com.coorchice.library.SuperTextView

虽然报这个错误,但是实际上这个控件的使用时没问题的,在7.0这些低版本上都是正常运行的。

from androidbaseframemvvm.

Quyunshuo avatar Quyunshuo commented on August 19, 2024

自定义view的问题吧,构造函数都正确重写了吗

from androidbaseframemvvm.

chenmingyin avatar chenmingyin commented on August 19, 2024

我刚才去这个自定义View的项目里看了,https://github.com/chenBingX/SuperTextView,这个控件只提供了x86的系统镜像,而AndroidStudio的模拟器在Android 12、13上只能使用x86_64的系统镜像,所以有可能是这个原因导致这个自定义View在x86_64的模拟器上时而能用,时而报错。

from androidbaseframemvvm.

Quyunshuo avatar Quyunshuo commented on August 19, 2024

我刚才去这个自定义View的项目里看了,https://github.com/chenBingX/SuperTextView,这个控件只提供了x86的系统镜像,而AndroidStudio的模拟器在Android 12、13上只能使用x86_64的系统镜像,所以有可能是这个原因导致这个自定义View在x86_64的模拟器上时而能用,时而报错。

这个你可以进一步验证下,如果排除这个原因还是有问题,你再联系我

from androidbaseframemvvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.