Android solves the problem of build path errors
After creating an eclipse Android project, such as test2, copy several packages from other projects into test2. The following errors will always occur during compilation:
? The project cannot be built until build path errors are resolved
The reason for this error is: Android manifest The main package name configured in XML is the same as androidmanifest. XML It is caused by the inconsistency of the package where the activtiy configured in XML is located.
The modification method is:
1. In androidmanifest The following red flags were found in the XML:
<activity android:name=".MainActivity" ...... </ activity>
2. Determine the package name of mainactivity and fill it in the red mark below.
<manifest xmlns:android=" http://schemas.android.com/apk/res/android " package="com.android.packagename"
The above is the data sorting for Android to solve build path errors. Continue to supplement relevant data in the future. Thank you for your support for this site!