昨天我的笔记本电脑被关闭了,因为我忘了把它插上电源.
现在,当我尝试运行项目时,打开笔记本电脑,看到运行窗口底部出现错误:
错误:找不到android.app.Activity类
我测试了这个并且这种方式无法解决我在IntelliJ 12中的Android Hello World问题 - 找不到android.app.Activity类
编辑:我使用这个答案,它对我有用:
我想在我的 Android 应用程序中显示 html 图像地图。为此,我使用 WebView,并且我希望当<area>单击 a 时,单击的区域执行某些操作。例如,如果我使用踢或触摸“北卡罗来纳州”,我会在祝酒词中显示它的名称。
我的代码是:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>map_usa_856</title>
</head>
<body>
<img src="usamap.png" width="320" height="266" style="margin:0 auto; display:block;" usemap="#Map" border="0" />
<map name="Map" id="Map">
<area shape="poly" href="North Carolina" alt="North Carolina" title="North Carolina" coords="266,109,267,107,270,107,270,105,273,102,278,100,277,98,275,98,276,96,278,96,280,93,278,91,277,91,278,90,277,88,245,93,244,97,242,97,239,100,236,102,233,102,232,104,231,104,231,105,237,104,240,102,250,102,250,102,252,104,258,102">
<area shape="poly" href="North Dakota" alt="North Dakota" title="North Dakota" coords="119,17,152,17,155,38,118,36">
<area shape="poly" href="Rhode Island" alt="Rhode Island" title="Rhode Island" coords="289,48,291,53,292,52,302,54,302,57,311,57,311,51,302,51,302,53,292,51,291,48">
<area shape="poly" href="Illinois" alt="Illinois" title="Illinois" coords="208,79,207,80,208,82,207,85,205,87,205,91,203,93,203,93,202,93,200,93,200,95,198,93,199,90,192,87,194,82,191,82,190,82,190,80,185,77,185,75,187,69,187,67,190,67,192,62,189,60,204,59,204,60,206,62">
<area shape="poly" href="New Mexico" alt="New Mexico" title="New Mexico" coords="117,96,83,93,78,130,83,131,84,127,92,129,92,127,115,129"> <area shape="poly" alt="Georgia" …Run Code Online (Sandbox Code Playgroud)