error description:
Error:Some file crunching failed, see logs for details p>
recently a lot of readers have asked me why I still get an error after I add it according to my method. So let me add a little bit here.
note ⚠ ️ : this is a question! So if you read the error log for Gradle, you can read the error log for Gradle.
click on the Gradle Console in the lower right corner. View gradle detail log:
problem 1:
images in resource files are not PNG files.
span> p>
problem 2:
is not given. Figure 9 has margins.
Log Log 1:
AAPT: libpng error: Not a PNG file
Error: Some file crunching failed, see logs for details
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ‘:app:mergeDebugResources’.
> Error: Some file crunching failed, see logs for details
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
BUILD FAILED
reason 1 solution:
in the build.gradle file of project app, add:
in the android TAB
aaptOptions { cruncherEnabled = false useNewCruncher = false }
reason 2 solution:
We looked at the log and found that there is no margin. What is margin?Let’s look at the following two pictures
Boundless space (with no black edges)
There are margins and there are black edges all around.
so how to set up?
Click on the white edge, the position of the click will be black, left and right or drag up and down to change the black edge, so as to set the size of the margin.
error reasons may not only have the above two kinds of log, if you encounter other reasons, welcome everyone harassment!!
Read More:
- Android Studio Error: Some file crunching failed, see logs for details
- Some file crashing failed, see logs for details
- Android Studio error “Manifest merger failed with multiple errors, see logs” solution
- Android studio compile and run report: AAPT2 error: check logs for details
- Android studio error compilation failed see the compiler error output for details.
- Manifest merger failed with multiple errors, see logs [How to Solve]
- Android Studio Install Error Failed to install Intel HAXM. For details, please check the installation log
- Compilation failed see the compiler error output for details
- Manifest merger failed with multiple errors, see logs
- Aapt2 error: check logs for details
- Question: connecting git team provider failed. See log for details
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- An error occurred while creating the AVD. See idea.log for details & Troubleshoot
- configure: error: C compiler cannot create executables See `config.log’ for more details
- Error during artifact deployment. See server log for details
- Error during artifact deployment. See server log for details.
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error