"Android" Mobile Project location

Source: Internet
Author: User

First, preface

Sometimes, after we create a new project, we want to re-move items to another folder for some reason. However, when you move to a new folder, you find that a good project doesn't work. When you click Run, the following dialog box appears.

Installation failed with message Failed to finalize session : INSTALL_FAILED_INVALID_APK: Split lib_dependencies_apk was defined multiple times.It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.WARNING: Uninstalling will remove the application data!Do you want to uninstall the existing application?

The main idea is to say lib_dependencies_apk this thing defined several times, we have to click OK Unloading load, but click OK, or can not run.

Ii. solution 1. Compile the. class file before you clean the project, recompile the file

Click Build->clean Project, and then click Rebuild Project.

Re-click to run, found that the installation is not running.

2. Delete some files automatically generated by the IDE


Delete. Gradle,. Idea, build three folders, be careful not to delete the wrong oh.
Click Run again.

This is the time to run.

"Android" Mobile Project location

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.