Unable to execute DEX: NULL

Source: Internet
Author: User

The project is imported from external to eclipse. Once compiled, the following error occurs: conversion to Dalvik format failed: unable to execute DEX: null.
At the same time, eclipse is also very slow and has been suspended several times. Please give me some advice. Thank you.

Solution

1: Set memory

Eclipse.exe shortcut -- Right-click the shortcut menu and enter the following content in the target:
"D:/Eclipse/eclipse.exe"-vmargs-xms128m-xmx512m-XX: permsize = 64 m-XX: maxpermsize = 128 m

The installation path of eclipse is enclosed in double quotation marks.

If 1 fails:

Import the database as a user library. The procedure is as follows:

1. Right-click the project in eclipse and select "build path-> Add libraries ...".
2. Select User library from the list and click Next.
3. Click the "user libraries..." button.
4. Click "new..." in the user libraries dialog.
5. Give the user library a name and select the system library checkbox and click OK.
6. Highlight the newly added user library in the list and click the "add jars..." button and add the desired jar files.
7. Click OK on the user libraries dialog.
8. Make sure the new user library is checked in the Add library dialog and

Use my own project. Compile OK.

If there is still a Red Cross, select Java build path -- "order and export to put the imported package in front of the android package.

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.