- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
如何让包名带下划线?
我需要一个像“com.mibleme.app_155895”这样的包名称
它必须是app_155895
。但是通过重构,重命名,我在 apk 部署期间在应用程序模块中遇到错误。我怎样才能做到这一点?
错误:
:进程调试资源
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sample:processDebugResources'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:148)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:141)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
.gradle\caches\transforms-2\files-2.1\d5e6c023bcdfa968a33afafc1e52a186\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
keihiko\sample\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
.gradle\caches\transforms-2\files-2.1\07ceb56007a75c75f080f24129d76d7b\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
.gradle\caches\transforms-2\files-2.1\07ceb56007a75c75f080f24129d76d7b\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
在此之前一切都很好 - 构建完成
最佳答案
关于java - 如何使包名带有下划线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56825567/
安装flutter_ffmpeg时我应该设置包名 安卓/build.gradle ext { flutterFFmpegPackage = "" } 并在 ios/Podfile if plu
我克隆了 sms-backup-plus存储库。这是 eclipse 的存储库文件夹结构。 但是项目中的包名称是com.zegoggles.smssync;。所以我收到错误声明的包与预期的包不匹配。我
这个问题在这里已经有了答案: Rename package in Android Studio (55 个答案) 关闭 4 年前。 你好,有什么方法可以使用这种格式重命名包名吗 live.compa
是否有合法的“通用”包名称可用于开源一些演示代码? 我想通过 Google Code 或任何地方提供演示 Android 应用程序的源代码作为“公共(public)域”,但我希望源代码包是“通用的”。
我的域名是3DTOPO.com。显然java不允许包域名以数字开头。 为什么Java反向域名不遵循与域名相同的规则?我真的不想将我的包命名为 com.threedtopo.... 首先,这不是我的域名
我们在AndroidManifest.xml中声明的包名是一个应用程序的唯一ID。为了避免命名冲突,我们通常在这个包名中使用域名,例如“com.google.*”。这样的话,就没办法避免其他人在他们的
在《OCA Java SE 7 Programmer I Study Guide》一书中找到了java.*和javax.*是非法(保留)包名的资料。当我尝试创建包“java”并从中运行类时,我收到:
在我深入研究 Java API 的过程中,我遇到了 impl 和 internal 包。到目前为止,我从未真正考虑过其中的区别 - 与所有企业级 Java 应用程序一样,我认为它们只是意味着“此处的实
当我去https://packagist.org/packages/submit提交我的包裹。 显示此错误, The package name apzentral/ink is invalid, it
所以我有基础应用程序类 DApp。 我的 flavor 应用程序类只是扩展了 DApp。 例如 package com.d.android; public class App extends DApp
我有一个模板 应用程序,可以根据客户的品牌轻松更改配置参数来重新设计外观。在 Google Play 上发布时,我显然需要更改 AndroidManifest.xml 上的 packagename。
我正在使用此命令获取 logcat: C:\abs\adb logcat >> "Testdata".txt 这是收集设备上发生的所有日志。 但我只想获取“特定于应用程序”的日志,有人可以帮我吗? 我
我是一名优秀的程序员,十分优秀!