AndroidWebP-GradlePlugin icon indicating copy to clipboard operation
AndroidWebP-GradlePlugin copied to clipboard

打包的apk图片还是png,不是webp。

Open gnmmdk opened this issue 4 years ago • 1 comments

你好,下面是我的配置,打包的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跟原本的一样呢?

gnmmdk avatar Mar 07 '20 13:03 gnmmdk

是不是要自己把png的删掉 这样项目里面用的就是webp格式的图片了

biginsect avatar Apr 27 '20 03:04 biginsect