1. The Container 'android Dependencies' references non existing library is prompted when the Hello world is created.
Some people who check the information on the Internet say that the Clean Project, and then fix and so on. Some people say that appcompat_v7 is a Google-compatible package. Right-click your project-properties-Android and you will find the import appcompat_v7 package in the library. Just delete it. After deleting it, the new problem comes again:
2. actionbaractivity cannot be resolved to a Type
In the project/helloapppro/RES/values/styles. XML, the error: Error retrieving parent for item: no resource found that matches the given name 'Theme. appcompat. light' is returned '.
So some people say that the Android version is a problem and delete that paragraph.
<Style name = "appbasetheme" parent = "theme. appcompat. Light">
<! --
Theme customizations available in newer API levels can go in
Res/Values-vxx/styles. XML, while customizations related
Backward-compatibility can go here.
-->
</Style>
<Style name = "appbasetheme" parent = "theme. appcompat. Light">
<! -- API 11 theme customizations can go here. -->
</Style>
<Style name = "appbasetheme" parent = "theme. appcompat. Light. darkactionbar">
<! -- API 14 theme customizations can go here. -->
</Style>
<Style name = "apptheme" parent = "appbasetheme">
<! -- All mizmizations that are not specific to a special API-level can go here. -->
</Style>
After deletion, values is okay, but menu/Main. xml returns an error. The prompt is as follows:
3. Error: No Resource Identifier found for Attribute 'showasaction' in package 'com. hcar. helloapppro'
<Item
Android: Id = "@ + ID/action_settings"
Android: orderincategory = "100"
Android: Title = "@ string/action_settings"
APP: showasaction = "never"/>
Therefore, the deletion in step 2 is changed:
<Style name = "appbasetheme" parent = "Android: theme. Light">
<! --
Theme customizations available in newer API levels can go in
Res/Values-vxx/styles. XML, while customizations related
Backward-compatibility can go here.
-->
</Style>
However, error: No Resource Identifier found for Attribute 'showasaction' in package 'com. hcar. helloapppro' still exists.
4. After all the errors that can be caused are deleted, it finally seems that there are no errors and an error is reported after running:
[4.2 16:02:12-helloapppro] launching a new emulator with virtual device 'avd4. 100'
[16:02:12-emulator] emulator: Error: x86 emulation currently requires hardware acceleration!
[16:02:12-emulator] Please ensure intel haxm is properly installed and usable.
[16:02:12-emulator] CPU acceleration status: Hax kernel module is not installed!
5. I can solve this problem, so I happily downloaded Hax hardware acceleration using SDK manager. At this time, I suddenly remembered whether these problems would not occur without x86. Download
After restarting eclipse, we found that r appeared! It is not so mysterious, that is, to assign some integer values to the string (with some meanings ). E: \ Dev \ adroid_lab \ SDK \ extras \ intel \ hardware_accelerated_execution_manager. click "Install .exe.
Public final class r {
Public static final class ATTR {
}
Public static final class dimen {
/** Default screen margins, per the android design guidelines.
Example customization of dimensions originally defined in RES/values/dimens. xml
(Such as screen margins) for screens with more than 820dp of available width. This
Wocould include 7 "and 10" devices in landscape (~ 960dp and ~ 1280dp respectively ).
*/
Public static final int activity_horizontal_margin = 0x7f040000;
Public static final int activity_vertical_margin = 0x7f040001;
}
Public static final class drawable {
Public static final int ic_launcher = 0x7f020000;
}
Public static final class ID {
Public static final int action_settings = 0x7f080000;
}
Public static final class layout {
Public static final int activity_main = 0x7f030000;
}
Public static final Class Menu {
Public static final int main = 0x7f070000;
}
Public static final class string {
Public static final int action_settings = 0x7f050002;
Public static final int app_name = 0x7f050000;
Public static final int hello_world = 0x7f050001;
}
Public static final class style {
/**
Base application theme, dependent on API level. This theme is replaced
By appbasetheme from Res/Values-vxx/styles. xml on newer devices.
Application theme.
Theme customizations available in newer API levels can go in
Res/Values-vxx/styles. XML, while customizations related
Backward-compatibility can go here.
*/
Public static final int appbasetheme = 0x7f060000;
}
}
6. After restarting, wait for about 1 minute, OK, and finally "Hello, Android"
[16:32:15-helloapppro] Deming com. hcar. helloapppro. mainactivity launch
[4.2 16:32:15-helloapppro] Automatic Target mode: preferred AVD 'avd4. 100' is not available. Launching new emulator.
[4.2 16:32:15-helloapppro] launching a new emulator with virtual device 'avd4. 100'
Considerations for the first project of androd