search

Home  >  Q&A  >  body text

android strange crash

I have encountered a very strange problem recently. In this way,

Click to run:

The command displayed by the gradle console is: Executing tasks: [:app:assembleRecticonRelease]
A package A is generated,

Then use the command line to execute the packaging command and generate a package B

Compare the two packages: the size of dex is the same, but the resource files under res are different. I don’t know what is the reason for this?


What’s even stranger is that package B keeps crashing on some Samsung machines, but package A does not. Both packages The layout file is the same, the error reported is:
android.view.InflateException: Binary XML file line #20: Error inflating class android.support.design.widget.CollapsingToolbarLayout

黄舟黄舟2747 days ago872

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-06-13 09:25:47

    You made a typo in the package. The correct command is gradlew assembleRecticonRelease
    You can download gradlew tasks, and there is no such task at all

    reply
    0
  • Cancelreply