Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.55 KB

byteutil

有关byte数据处理的工具类

Build Status Maven Central

如何使用

doc文档

依赖配置

maven配置

<dependency>
    <groupId>com.itlgl</groupId>
    <artifactId>byteutil</artifactId>
    <version>0.1.2</version>
</dependency>

gradle配置

implementation 'com.itlgl:byteutil:0.1.2'

Android Studio中需要额外增加配置

android {

    packagingOptions {
        exclude 'META-INF/maven/com.itlgl/byteutil/pom.properties'
        exclude 'META-INF/maven/com.itlgl/byteutil/pom.xml'
    }
}

否则会因为META-INF文件报错:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.ligl/byteutil/pom.properties
	File1: C:\Users\ligl01\.gradle\caches\modules-2\files-2.1\com.ligl\byteutil\0.0.1\48d08a5499328c65e87fcbd1f01fdd6ad686eca2\byteutil-0.0.1.jar
	File2: C:\Users\ligl01\.gradle\caches\modules-2\files-2.1\com.ligl\byteutil\0.0.1\48d08a5499328c65e87fcbd1f01fdd6ad686eca2\byteutil-0.0.1.jar

直接下载jar包

byteutil-0.1.0.jar

关于我

一个Android开发者