我一直在尝试按照 this wiki 中的说明在我的应用程序中加入对 Parse Push 的支持。在 GitHub。为 Android 构建时,最后一个绊脚石是构建日志中的错误消息:
Attribute "name" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application".
原来是build hint的组合
codename1.arg.android.multidex=true
和
codename1.arg.android.xapplication_attr=android\:name\="com.parse4cn1.nativeinterface.CN1AndroidApplication"
导致了这个问题。开启 multidex 后,应用名称变为 android.support.multidex.MultiDexApplication
我通过将 multidex
设置为 false
解决了这个问题,但是如果我需要它为 true
怎么办?
最佳答案
我不认为它与multi-dex进程有关。 parse4cn1 wiki 提到更改 android.xapplication_attr
我假设你添加了 name 属性。这是不正确的,因为它会将名称注入(inject)到已命名的 Activity 中。
关于android - 使用 multidex=true 构建时 AndroidManifest 中的应用程序名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36657755/