栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

近期错误,JitPack编译出错

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

近期错误,JitPack编译出错

1、布局引用失效

导入的R包为库的,与xml位置包名不相同

2、gson转换失败

onclick之前adapter初始化列表中进行转换loop报错
在使用前先转换分别存储再使用

3、jitPack错误-> 添加id ‘maven-publish’

Gradle ‘publishToMavenLocal’ task not found. Please add the ‘maven-publish’ or ‘maven’ plugin.

4、jitPack错误-> id ‘kotlin-android-extensions’ 改为buildFeatures {viewBinding true }

The ‘kotlin-android-extensions’ Gradle plugin is deprecated.

5、jitPack错误-> ERROR: No build artifacts found;Expected artifacts in: $HOME/.m2/repository/XX/YY/unspecified

尝试implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.20"后gradle下android花括号内添加

 afterevaluate {
        publishing {
            def versionName = "1.0"
            publications {
                // Creates a Maven publication called "release".
                release(MavenPublication) {
                    // Applies the component for the release build variant.
                    from components.release

                    // You can then customize attributes of the publication as shown below.
                    groupId = 'com.XX.XX'
                    artifactId = 'library'
                    version = versionName
                }
            }
            
        }
    }
6、jitPack改到过年终于通过了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/731822.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号