navit-project.org
http://forum.navit-project.org/

Android: build failed
http://forum.navit-project.org/viewtopic.php?f=19&t=648
Page 1 of 1

Author:  cnieves [ 11 Dec 2017, 22:27 ]
Post subject:  Android: build failed

Hi,
I am trying to build navit from git using instructions at:
http://wiki.navit-project.org/index.php ... evelopment

make finished succesfully, but make apkg fails:
Quote:
getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for Navit...
[gettarget] Project Target: Android 2.2
[gettarget] API level: 8
[gettarget] WARNING: Attribute minSdkVersion in AndroidManifest.xml (11) is higher than the project target API level (8)
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/cnieves/temp/navit/android-build/navit/android/bin/rsObj
[mkdir] Created dir: /home/cnieves/temp/navit/android-build/navit/android/bin/rsLibs
[echo] ----------
[echo] Resolving Dependencies for Navit...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:16: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:16: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:27: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentNavigation'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v19/styles.xml:28: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentStatus'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:40: error: Error: No resource found that matches the given name: attr 'android:navigationBarColor'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:41: error: Error: No resource found that matches the given name: attr 'android:statusBarColor'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:43: error: Error: No resource found that matches the given name: attr 'android:windowDrawsSystemBarBackgrounds'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:32: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentNavigation'.
[aapt] /home/cnieves/temp/navit/android-build/navit/android/res/values-v21/styles.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowTranslucentStatus'.

BUILD FAILED


I have installed other apis, as shown in:
Quote:
$ android list targets
Available Android targets:
----------
id: 1 or "android-8"
Name: Android 2.2
Type: Platform
API level: 8
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854
Tag/ABIs : default/armeabi
----------
id: 2 or "android-11"
Name: Android 3.0
Type: Platform
API level: 11
Revision: 2
Skins: WXGA (default)
Tag/ABIs : default/armeabi
----------
id: 3 or "android-17"
Name: Android 4.2.2
Type: Platform
API level: 17
Revision: 3
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a, default/x86, google_apis/armeabi-v7a, google_apis/x86
----------
id: 4 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : no ABIs.
----------
id: 5 or "Google Inc.:Google APIs:17"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 4
Description: Android + Google APIs
Based on Android 4.2.2 (API level 17)
Libraries:
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a


How can I tell make/cmake to use other api version?

Thanks in advance

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/