{"action":"created","issue":{"url":"https://api.github.com/repos/part-cw/lambdanative/issues/67","labels_url":"https://api.github.com/repos/part-cw/lambdanative/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/part-cw/lambdanative/issues/67/comments","events_url":"https://api.github.com/repos/part-cw/lambdanative/issues/67/events","html_url":"https://github.com/part-cw/lambdanative/issues/67","id":99903034,"number":67,"title":"Need a better default ANDROIDAPI in SETUP.template","user":{"login":"ackalker","id":429567,"avatar_url":"https://avatars.githubusercontent.com/u/429567?v=3","gravatar_id":"","url":"https://api.github.com/users/ackalker","html_url":"https://github.com/ackalker","followers_url":"https://api.github.com/users/ackalker/followers","following_url":"https://api.github.com/users/ackalker/following{/other_user}","gists_url":"https://api.github.com/users/ackalker/gists{/gist_id}","starred_url":"https://api.github.com/users/ackalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ackalker/subscriptions","organizations_url":"https://api.github.com/users/ackalker/orgs","repos_url":"https://api.github.com/users/ackalker/repos","events_url":"https://api.github.com/users/ackalker/events{/privacy}","received_events_url":"https://api.github.com/users/ackalker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-09T14:55:11Z","updated_at":"2015-08-10T16:20:43Z","closed_at":null,"body":"Using ANDROIDAPI=10 in SETUP (with the correct target for API 10 installed using the SDK manager), I see:\r\n\r\n```\r\n$ ./configure Calculator android\r\n[...]\r\n$ make\r\n[...]\r\n=== configured to build Calculator version 1.0 for android on linux in normal mode\r\n** WARNING Android API changed to 9\r\n[...]\r\n==> creating android loader needed for Calculator..\r\n => creating android project..\r\nERROR: API 9 not a target.\r\n```\r\n\r\nThis appears to be a nasty Catch-22: Android API 10 is available as a terget in the latest SDK Manager, however it is not included in the latest NDK distribution. While Android API 9 is available in the NDK distribution, it is not available as a target in the latest SDK Manager.\r\n\r\nI would like to suggest setting `ANDROIDAPI` to at least `12` in `SETUP.template` to spare users from having to sort this out. I think it would also be nice to include a table of some sorts (and keep it updated!) which indicates which APIs are available in both the SDK Manager and the NDK.\r\n\r\nAnother alternative would be to make the build scripts more intelligent with regards to API (backwards) compatibility, for instance to match a newer SDK API target with an older NDK API or the other way round. This probably needs (a lot of) testing.\r\n\r\n#### Android SDK and NDK API availability\r\n(Current as of 2015-08-09, using the latest installers)\r\n\r\nAndroid version | API | SDK | NDK\r\n|---|:---|:---:|:---:\r\n? | 22 | X | -\r\n5.0.1 | 21 | X | X\r\n4.4W.2 | 20 | X | -\r\n4.4.2 | 19 | X | X\r\n4.3.1 | 18 | X | X\r\n4.2.2 | 17 | X | X\r\n4.1.2 | 16 | X | X\r\n4.0.3 | 15 | X | X\r\n4.0 | 14 | O | X\r\n3.2 | 13 | O | X\r\n3.1 | 12 | O | X\r\n3.0 | 11 | O | -\r\n2.3.3 | 10 | X | -\r\n2.3.1 | 9 | H | X\r\n\r\nLegend:\r\n\r\nX = Available\r\nO = Obsolete (must check the checkbox marking `Obsolete` to show)\r\nH = Hard to reach, obsolete (must check the checkbox marking `Obsolete` followed by some crazy voodoo magic to show)"},"comment":{"url":"https://api.github.com/repos/part-cw/lambdanative/issues/comments/129516093","html_url":"https://github.com/part-cw/lambdanative/issues/67#issuecomment-129516093","issue_url":"https://api.github.com/repos/part-cw/lambdanative/issues/67","id":129516093,"user":{"login":"clpetersen","id":4421334,"avatar_url":"https://avatars.githubusercontent.com/u/4421334?v=3","gravatar_id":"","url":"https://api.github.com/users/clpetersen","html_url":"https://github.com/clpetersen","followers_url":"https://api.github.com/users/clpetersen/followers","following_url":"https://api.github.com/users/clpetersen/following{/other_user}","gists_url":"https://api.github.com/users/clpetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/clpetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clpetersen/subscriptions","organizations_url":"https://api.github.com/users/clpetersen/orgs","repos_url":"https://api.github.com/users/clpetersen/repos","events_url":"https://api.github.com/users/clpetersen/events{/privacy}","received_events_url":"https://api.github.com/users/clpetersen/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T16:20:42Z","updated_at":"2015-08-10T16:20:42Z","body":"Commit bb66d6a changes the default API to 15, which appears to be the oldest non-obsolete target in your list. Thanks for looking into this."}}