zh8637688 / androidwebp-gradleplugin Goto Github PK
View Code? Open in Web Editor NEW将图片转换成WebP格式的Android构建插件,自动下载 libwebp,支持手动转换与自动转换两种模式。
将图片转换成WebP格式的Android构建插件,自动下载 libwebp,支持手动转换与自动转换两种模式。
你好,下面是我的配置,打包的apk还是png,而没有转成webp。
1、这里是项目下的build.gradle
buildscript {
repositories {
maven {
url 'https://dl.bintray.com/zh8637688/maven/'
}
...
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.0'
classpath 'cz.gradle.android:webp:0.0.1'
}
}
2、 下面是app下的build.gradle
apply plugin: 'com.android.application'
apply plugin: 'cz.webp'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.vv.webpconvert.demo"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
WebPAndroid {
autoConvert true
quality 75
}
...
}
....
3、并且我还有在环境变量配置了E:\libwebp-0.4.1-windows-x64\bin
为什么打包出来的apk跟原本的一样呢?
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.