首先,我是Android新手。 我正在做一个应用程序,我正在实施一个名为HoloEverywhere的库。 这个库在themes.xml中使用库ActionBar Sherlock。我已经导入到我的工作区ActionBar Sherlock,并将其添加到HoloEverywhere。 接下来,我已经加入HoloEverywhere到我的项目,但是当我尝试使用它,我有一个错误(我试图用一个按钮):导入HoloEverywhere时出错
The following classes could not be instantiated:
- com.WazaBe.HoloEverywhere.ButtonHolo (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse.
我把类的路径在我的布局,像这样:
<com.WazaBe.HoloEverywhere.ButtonHolo
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/text" />
我该如何解决这个问题,并在我的项目中使用这个库?谢谢:) PS。对不起,我的英语,我知道它不是很好。
你好,我是Christophe(或Waza_be),这是我第一次看到这样的错误!如果我找到了一些东西,我会来回答你的! –
我做了一些步骤,但我在pom.xml文件中得到这个错误:在这一行发现多个注释: - 未能转移org.apache.maven.plugins:maven-enforcer-plugin:pom:1。将http:// repo.maven.apache.org/maven2中的0缓存在本地存储库中,直到中央的更新时间间隔过去或强制更新后才会重新解析分辨率。原始错误:无法传输工件org.apache.maven.plugins:maven-enforcer-plugin:pom:1.0 from/to central(http://repo.maven.apache.org/ maven2):操作被取消。 - 项目构建错误:无法解析的构建扩展插件 – mahdi
http://stackoverflow.com/a/20895081/623694 –