Build issues that may be encountered by importing low-version project in Android (go to: victor@beijing)

Source: Internet
Author: User

When you use a later version of the SDK and then import a previous version of project, you experience some compatibility issues.
(1) Unable to resolve target ' android-5 '
Because the version of SDK,API that is now used in this machine is 8, and the imported project uses 2.0 developed, its API version is 5.2.2.
It would be nice to change the target=android-5 in Default.properties to Target=android-8.
Note, however, that you also want to synchronize the &LT;USES-SDK android:minsdkversion= "5"/> in Androidmanifest.xml to <uses-sdk android:minsdkversion= " 8 "/&gt, otherwise the compiler warns you that the version used is too low.
(2) After completion, a new error occurred in the compilation: Conversion to Dalvik format failed with error 1
This is related to the loaded SDK, by right-selecting the project build path--Configure build path ...-Libraries found in the imported jars in addition to an Android 2.2 also has a folder under the same path item, remove it
(3) If the project also displays an "X" icon, click on the menu project->clean and then compile it.

Http://blog.sina.com.cn/s/blog_7c9b7f7f0100qtgl.html
====
Download the source code how to like my eclipse built in the project, the way to open a project to download the source code it??
Selecting the "file->import" option will jump out of the "import" window. Select the "general->existing Projects into workspace" project and press the "next" button to bring a new screen. Next to the "select Root directory" field, press the "browse..." button on the right to select the corresponding project. When selected, press the "finish" button to complete the action to import the project from the existing work environment (WorkSpace) folder into the eclipse environment.

Http://www.mars-droid.com/bbs/archiver/?tid-2382.html
====
Today to import some source code for research, error unable to resolve target ' android-5 '.

Some friends on the internet say it is because they are using a version that is higher than the version of the imported project.

Here's how to fix it:

Modify Default.properties in the project to modify the target property to the version of the SDK that you are currently using, and I modified it to android-8

At the same time modify the Androidmanifest.xml in the android:minsdkversion is also the current version of the SDK, I modified to "8", problem resolution.
http://blog.csdn.net/qiuzhimou/article/details/6564604
====

Right click on the project selection properties, the libraries under the Android x.x to remove.
On the right side of the Add library, select JRE System Library and next to reassign the JRE.
After you determine the right-click Project, select Android Tools under Fix Project Properties.
Project is clean under projects, and then it runs normally.
On the Internet, the re-designation of Target has not been well tried.
Http://blog.sina.com.cn/s/blog_7705f5140100tpm0.html
====
The Android 2.0 SDK was deployed to run the project previously written in 1.5, and the following failure information was obtained:
”[...] Could not find xxxxx.apk! "
Search online to find the following workaround:
http://www.devdiv.net/viewthread.php?tid=15563
This error is in the context of Android 1.5 SDK, which is verified to be the same for Android 2.0.
1) Select the project Properties->java Build path->libraries, remove the default Android package;
2) Click on the Android tab on the left to select Android 2.0 in the project Build target on the right;
3) Right-click the project and select Android Tools->fix Project Properties.
The first two steps are required for any project that is suitable for 1.x SDK authoring.
http://blog.csdn.net/lpf66fpl/article/details/5387689
====
Refresh (F5) default.properties inside the modified target=android-10
Http://topic.csdn.net/u/20110825/10/d096692f-ea17-4baa-b128-5bb97988a1bb.html
====
I did a small project today and impatient wanted to get things done quickly.
Results indiscriminately built the project, wrote the process is always "burst chrysanthemum", depressed dead.
Later found that the SDK version is not correct, but the project did a large part, it is impossible to re-create a new project to copy into, this is not right.

Later, my classmates taught me a trick will kill skill!
In Project.Properties this document, the line "target=android-4" changed to "target=android-8" to solve.
From the SDK1.6 it becomes 2.2.
Whoa, damn it! It was a real violence, and it was done.

However, I have not found any other complications for the time being. At least the project has solved all the gape.

http://www.apkbus.com/forum.php?mod=viewthread&tid=17671

Compile issues that may be encountered by importing low-version project in Android (go to: [email protected])

Related Article

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.