An unexpected exception occurred while creating a change object. See the error log for more details

Source: Internet
Author: User

This error was prompted when I rename the package in the android project today (not during the previous rename, depressing ):

An unexpected exception occurred while creating a change object. See the error log for more details

Shows the effect:

 

 

After that, Google searched Baidu and finally found a post on stackoverflow:

Http://stackoverflow.com/questions/6465127/rename-android-package-name-fails/15771033#15771033 (note: this solution is not the answer to the Post's adoption)

Solution:

You can not belive this. I have exactly the same problem and is because I comment a class entirely. 
So I think that when eclipse try to change the package name of a commented class it throw this error.
To solve the problem you only has to delete the class or uncomment it.

 

This means that some classes in your project are "commented out all" (all the code in the entire class is commented out, that is, all the content in this class is comments without responding to the Execution Code), find these classes, and delete them. I tried this. After deletion, I can indeed rename it.

 

The blogger has encountered the same problem for a long time. Today, I saw this article solve the problem and specially reproduced it for learning only.

 

Link: http://www.cnblogs.com/tony-yang-flutter/p/3524256.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.