所以我遇到了很大的问题,我需要尽快修复它。我做了我的comp格式并安装了新版本的eclipse。我导入了我的项目以及它使用的 2 个库。这两个库被命名为 v7/gridlayout 和 actionbarsherlock/library。在 android 和参考下,它表明我包含了这 2 个库。他们看起来编译得很好。但是当我清理我的项目时,我得到一个错误:
The type com.google.android.maps.MapActivity cannot be resolved. It is indirectly referenced from required .class files
在线:
public class MainActivity extends SherlockMapActivity implements ActionBar.TabListener
好的,由于某种原因,我的应用程序现在需要构建为 google api。所以我这样做。现在我的 R 文件没有被创建,我得到这个错误:
R cannot be resolved to a variable
我认为这可能意味着我的布局有一些错误,但在哪里?当我检查它们时,我发现它们都有相同的错误:
Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
所以我又回到了夏洛克有问题的问题......
有任何想法吗?
顺便说一句:在 .xml 我用这个作为主题:
xmlns:android="http://schemas.android.com/apk/res/android"
我觉得问题出在这里:
[2012-09-27 12:54:37 - com.motiviti.zmapp.MainActivity] C:\Users\mitja\Desktop \zmap\res\values-v11\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[2012-09-27 12:54:37 - com.motiviti.zmapp.MainActivity] C:\Users\mitja\Desktop\zmap\res\values-v14\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.