【问题标题】:Tag <permission> attribute name has invalid character '$'标记 <permission> 属性名称包含无效字符“$”
【发布时间】:2017-03-18 07:53:51
【问题描述】:

错误:

(42, -1) android-apt-compiler: [android] D:....\platforms\android\AndroidManifest.xml:42: 标记 属性名称包含无效字符“$”。

当我在 androidmanifest.xml 文件中将我的混合应用程序导入到 android studio 时,它显示错误 uses-permission attribute has invalid character '$' 谁能给出解决方案如何解决这个问题?

【问题讨论】:

  • 介意给我们 72 的线路而不是给我们一张照片吗?
  • 特别是因为图片没有显示行号?
  • @AbAppletic 它在
  • 尝试删除$
  • @AbAppetic。 ${applicationId} 寻找价值(字符串或应用程序 ID 名称)我认为

标签: android xml eclipse


【解决方案1】:

尝试这样使用

<permission android:name="com.example.myapp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.example.myapp.permission.C2D_MESSAGE" />

com.example.myapp 是你的包名

希望对你有帮助!

【讨论】:

    猜你喜欢
    • 2016-12-18
    • 2015-02-13
    • 1970-01-01
    • 2016-03-22
    • 1970-01-01
    • 2017-09-16
    • 1970-01-01
    • 1970-01-01
    • 2014-12-04
    相关资源
    最近更新 更多