Question 1 about importing Android source code to eclipse

Source: Internet
Author: User
About how to import Android source code to eclipse [question points: 40 points, end person: youngmanl_ren]

*
* Youngmanl_ren
* (Youngmanl_ren)
*
* Level 1:
* Post completion rate: 100.00%
*

Published by: 02:01:36
Recently, we want to build an MMS module for Android, so we should first look at the source code of Android MMs! Therefore, the downloaded source code is imported into the Eclipse project, but many errors cannot be found in the package.
So I added the missing packages one by one. The last package should be added.
No code compilation error,
However, the project name is still a Red Cross. I tried to run this MMS application and prompted an error. Cannot run.
Is it a license issue! Solution!

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Replies: 8

* Archie2010 user profile picture
* Archie2010
* (Ajie)
*
* Level 1:
*

# Score on the first floor: 10: 08:33:40
The path in the mainifest. xml file of the project must be correct.

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Excellent recommendation: [second kill] Super small metamorphosis mid small version available ~~~!!

* Youngmanl_ren user avatar
* Youngmanl_ren
* (Youngmanl_ren)
*
* Level 1:
*

# Second floor score: 0 reply to: 12:37:39
Only the project name has a red cross on it.
However, no Red Cross exists in the names of the files below.
So I don't know which file the problem is.
After all, the compilation is successful.
Can you give a detailed process?
For example
I still don't quite understand what you mean

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Excellent recommendation: Which language is the best for Windows Mobile development? What are the future trends?

* L0000584711 user profile picture
* L0000584711
*
*
* Level 1:
*

# Score on the third floor: 20: 13:25:55
Many referenced packages do not need to be compiled in the source code below the SDK. Therefore, errors will certainly be reported in eclipse.

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Excellent recommendations :~ Comrades, numa is here!

* Lily2005lucky user profile picture
* Lily2005lucky
* (WOLF)
*
* Level 1:
*

# 4th floor score: 10 Reply to: 19:47:49
Ls is correct. You don't need to worry about those errors, as long as the source code is compiled, OK

Many applications report errors in eclipse, and key source code compilation

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Best recommendation: My mobile hard drive cannot read the disk. Please use technical support. Thank you.

* Youngmanl_ren user avatar
* Youngmanl_ren
* (Youngmanl_ren)
*
* Level 1:
*

# Score on the fifth floor: 0: 21:56:07
Reference the reply from lda-584711 on the third floor:

Many referenced packages do not need to be compiled in the source code below the SDK. Therefore, errors will certainly be reported in eclipse.

Haha ~~ Thank you for your enthusiastic reply.
I don't fully understand it.
The packages in the SDK are incomplete. Many packages other than the SDK are referenced in the application.
To import the project, I have completed this process.
The current eclipse compilation project will not go wrong,
However, when I run this project, the system prompts that an error cannot be run.
There is no error message in mainifest. xml.
What path should I change? archie2010
Answer me, or there is no other way.
You can try importing MMS on your own.
Import the missing package
Let's take a look. What's the problem with the project?
Can such a project run?

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

Best recommendation: Acer Aspire One full evaluation (shown in the figure below)

* Youngmanl_ren user avatar
* Youngmanl_ren
* (Youngmanl_ren)
*
* Level 1:
*

# Score on the 6th floor: 0: 15:01:09
Let's answer it by yourself!
It is because the jar package I imported is imported in static mode. It is okay to import the jar package in lib mode.

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

* Zhengjiedna user profile picture
* Zhengjiedna
*
*
* Level 1:
*

# Score on the 7th floor: 0: 09:39:51
=-= See how to import

* Useful to me [0]
* Throwing bricks [0]
* Reference
* Report
* Management
* Top

* Lavender_bj1 user profile picture
* Lavender_bj1
* (Lavender_bj1)
*
* Level 1:
*

# Score on the eighth floor: 0: 11:13:33
I want to compile the MMS program in eclipse in Ubuntu. Like youngmanl_ren, many errors cannot be found in the package.
Eclipse-New-project-android project-Create project from existing source-Select Packages/apps/MMS to create a conversationlist project.
Problem: the following files cannot be imported.
Import Android. database. SQLite. sqlitewrapper;
Import Android. provider. telephony. xxx;
Import com. Google. Android. mms. xxx;
Import Android. DRM. mobile1.xxx;
Import com. Android. Common. xxx;
Import com. Android. Internal. xxx;
Import Android. Media. mediametadataretriever;
Import Android. OS. systemproperties;
Import Android. provider. drmstore;
"So I added the missing packages one by one," said youngmanl_ren. The last package should be added. "What jar packages are there? Under what directory of the source code?

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.