🔭 I’m currently working on Flutter.
chenenyu / img-optimizer-gradle-plugin Goto Github PK
View Code? Open in Web Editor NEW一款用于优化png图片的gradle插件,有效减少APK体积,支持极限压缩和无损压缩。
一款用于优化png图片的gradle插件,有效减少APK体积,支持极限压缩和无损压缩。
报错是
Gradle *** project refresh failed
Error:Cause: com/android/build/gradle/internal/model/DefaultAndroidProject:Unsupported major.minor version 52.0
RT
Please update your repository for English language
你好triggerSize的数值如何计算,怎么来的,建议设成多少,多谢
2016-07-11 09:20:52 error: Exit: 2. /(项目地址)/app/build/pngquant/pngquant: 1: /(项目地址)/app/build/pngquant/pngquant: ����������H: not found/(项目地址)/app/build/pngquant/pngquant: 2: /(项目地址)/app/build/pngquant/pngquant: Syntax error: "(" unexpec
比如我上个版本执行了一次优化,这个版本再在执行一次,会不会还对上个版本已经优化过的图片再进行压缩?
6-07-14 14:13:17 info: 230 images need to be optimized.
2016-07-14 14:13:28 info: Total: 230, Succeed: 1, Skipped: 229, Failed: 0, Saved: 0.001953125KB
2016-07-14 14:13:19 info: Succeed! 2940B-->2938B, 0.06802721% saved!
2016-07-14 14:13:28 info: Task optimizeAppDebug executed successfully.
Why to skip so much?
I added the plugin in my project but I can't see it in my project root
可能在这儿问这个问题不合适,但是还是很想知道作者如何debug
Some problems were found with the configuration of task ':app:optimizeRelease' (type 'ImgOptimizerTask').
gradle:7.0.4
我把android studio更新到了4.0,而gradle最低版本要求为6.1.1,在sync build.gradle时报错,提示
Gradle sync failed: Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead. You attempted to replace a task named 'optimizeAppDebug', but there is no existing task with that name
当我注释掉apply plugin: 'img-optimizer'
后,项目能够正常编译。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.