gpt4 book ai didi

Make android not merge namespace name and package name(使Android不合并命名空间名称和包名称)

转载 作者:bug小助手 更新时间:2023-10-25 14:51:44 26 4
gpt4 key购买 nike



When I try to build my project in Android Studio, it fails with this error: package pl.piku.malowanki.pl.piku.malowanki does not exist.
I have set the namespace field in module's build.gradle file to the same as the package name ("pl.piku.malowanki"). I need to set the namespace field because androidx.activity:activity requires it.

当我尝试在Android Studio中构建我的项目时,它失败了,并显示以下错误:Package pl.piku.Malowanki.pl.pikU.S.Malowanki不存在。我已经将模块的build.gradle文件中的NAMESPACE字段设置为与包名相同(“pl.pikU.S.Malowanki”)。我需要设置名称空间字段,因为androidx.active:Activity需要它。


I've tried setting the namespace to nothing, or removing package statement from classes.

我尝试过将命名空间设置为空,或者从类中删除Package语句。


更多回答
优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com