简体   繁体   中英

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. every class added is added under, package com.parse; I can change them all manually to package 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

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 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 .

You can solve your problem in Eclipse too ,follow below steps :

1 . Download jar file from here

2 . Add this jar file to you eclipse project (Android)

3 . Rebuild project .

4 . Run project .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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