“转换为 Dalvik 格式失败,错误 1”尝试了所有
我已经阅读了很多关于此错误的帖子,并尝试了大多数解决方案,但我找不到适合我的项目的解决方案。
当我将这行代码添加到 AndroidManifest 中时,Eclipse 仅显示错误:
<!-- this is the problem line -->
<permission android:name="com.myproject.myproject.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<!-- end of problem line -->
<uses-permission android:name="com.myproject.myproject.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
请问有什么解决方案吗?
提前致谢
Possible Duplicate:
Conversion to Dalvik format failed with error 1 - After updating Android SDK & ADT
I've readed a lot of posts about this error, and tried most of the solutions but i can't find a solution for my project.
Eclipse only show me the error when I add into my AndroidManifest this line of code:
<!-- this is the problem line -->
<permission android:name="com.myproject.myproject.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<!-- end of problem line -->
<uses-permission android:name="com.myproject.myproject.permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
any solution please?
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的权限名称可能是错误的。检查您的权限名称:
http://developer.android.com/guide/ topic/manifest/manifest-intro.html
http://developer.android.com/reference/android/Manifest.permission.html
Your permissions names may be wrong. Check your permissions names:
http://developer.android.com/guide/topics/manifest/manifest-intro.html
http://developer.android.com/reference/android/Manifest.permission.html
我之前也遇到过这个问题,就我而言,这是因为我包含了 jar 文件,并且它们都有相同的包名称。我去掉了其中一个,然后一切都像魅力一样发挥作用。确保您也没有相同的软件包问题。如果您包含任何 jar 或库项目。
I have also faced this issue earlier, In my case this was beacause I have included jar files, and they both have same package name. I removed one of them, thn everything worked like charm. Makesure you also don't have same package problem. If you include any jars or Library Project.