0

我正在尝试从以下位置编译 OSMAnd 项目:

https://github.com/osmandapp/Osmand

我越来越缺少 android-support-design.jar 和 android-support-v7-appcompat.jar Osmand-master\Osmand-master\eclipse-compile\design\bin\android-support-design.jar'

Osmand-master\Osmand-master\eclipse-compile\appcompat\android-support-v7-appcompat.jar

我没有找到与 Osmand-master\eclipse-compile\appcompat\res\values-v21\themes_base.xml 和 Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21 中的给定名称匹配的资源\styles_base_text.xml

以下是这两个文件中的许多错误消息:

    [2015-08-26 19:17:27 - android-support-design] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\themes_base.xml:136: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    [2015-08-26 19:17:27 - android-support-design] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\themes_base.xml:137: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    [2015-08-26 19:17:27 - android-support-design] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\themes_base.xml:146: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
    [2015-08-26 19:17:27 - android-support-design] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\themes_base.xml:150: error: Error: No resource found that matches the given name: attr 'android:windowElevation'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
    [2015-08-26 19:22:26 - OsmAnd] \Downloads\Osmand-master\Osmand-master\eclipse-compile\appcompat\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.

更新 1:编译中途并收到此错误:

 [2015-08-26 19:54:40 - Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/design/internal/NavigationMenuItemView;
 [2015-08-26 19:54:40 - OsmAnd] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/design/internal/NavigationMenuItemView;
4

1 回答 1

0

请按照此处描述的步骤操作:

https://code.google.com/p/osmand/wiki/GradleCommandLineBuildEnvironment

于 2015-08-27T18:59:15.227 回答