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
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