简体   繁体   English

Eclipse声明的软件包与预期的软件包不匹配

[英]Eclipse declared package does not match expected package

Thanks for your help in advance! 谢谢您的帮助! I am having a problem with declared packages, I have downloaded parse from github for android, My project is named Parr, when I go to add it to my project, I click on Parr then right click on src and try to add it, also tried the same under com.examle.parr, I am importing it by going into the file system and selecting the parse project I downloaded, I am selecting to add it into Parr/src/com/example/parr. 我在声明的软件包方面遇到问题,我从github下载了适用于android的parse,我的项目名为Parr,当我将其添加到项目中时,我单击Parr,然后右键单击src并尝试添加它,在com.examle.parr下尝试了相同的操作,我通过将其导入文件系统并选择我下载的解析项目来导入它,我选择将其添加到Parr / src / com / example / parr中。 every class added is added under, package com.parse; 每个添加的类都添加在com.parse包下; I can change them all manually to package com.examle.parr; 我可以手动将它们全部更改为com.examle.parr包; but their is way to many and I know there is a right way to do it, any help will be much appreciated. 但是他们是通往许多人的道路,我知道这样做是对的,任何帮助将不胜感激。 On a side note is android studio recommended for use with parse, I do not see any instructions to add it to eclipse on there website, just android studio 附带说明一下,建议将Android Studio与解析一起使用,在该网站上我看不到任何将其添加到eclipse的说明,只是android studio

On a side note is android studio recommended for use with parse, I do not see any instructions to add it to eclipse on there website, just android studio 附带说明一下,建议将Android Studio与解析一起使用,在该网站上我看不到任何将其添加到eclipse的说明,只是android studio

Android Studio is recommended for Android Development ,Google doesn't recommend to use Eclipse for Android Development , I would suggest you to switch from eclipse to Android Studio , Then will be much easier to solve the problems quickly you are facing now . 建议将Android Studio用于Android开发,不建议将Eclipse用于Android开发,我建议您从eclipse切换到Android Studio,这样将更容易快速解决您现在面临的问题。

You can solve your problem in Eclipse too ,follow below steps : 您也可以在Eclipse中解决您的问题,请按照以下步骤操作:

1 . 1。 Download jar file from here 这里下载jar文件

2 . 2。 Add this jar file to you eclipse project (Android) 将此jar文件添加到您的eclipse项目(Android)

3 . 3。 Rebuild project . 重建项目。

4 . 4。 Run project . 运行项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM