Possible Duplicate:
Conversion to Dalvik format failed with error 1 - After updating Android SDK & ADT可能重复:转换为Dalvik格式失败,错误1 - 更新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:
当我向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" />
any solution please?
有什么解决方案吗
thanks in advance
提前致谢
2 个解决方案
#1
0
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
#2
0
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.
我之前也遇到过这个问题,在我的情况下这是因为我已经包含了jar文件,并且它们都有相同的包名。我删除了其中一个,一切都像魅力一样。确保您也没有相同的包装问题。如果您包含任何罐子或图书馆计划。
#1
0
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
#2
0
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.
我之前也遇到过这个问题,在我的情况下这是因为我已经包含了jar文件,并且它们都有相同的包名。我删除了其中一个,一切都像魅力一样。确保您也没有相同的包装问题。如果您包含任何罐子或图书馆计划。