{"action":"opened","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/11442","repository_url":"https://api.github.com/repos/radare/radare2","labels_url":"https://api.github.com/repos/radare/radare2/issues/11442/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/11442/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/11442/events","html_url":"https://github.com/radare/radare2/issues/11442","id":358210623,"node_id":"MDU6SXNzdWUzNTgyMTA2MjM=","number":11442,"title":"Android native build is broken","user":{"login":"pavelkrcma","id":14149911,"node_id":"MDQ6VXNlcjE0MTQ5OTEx","avatar_url":"https://avatars2.githubusercontent.com/u/14149911?v=4","gravatar_id":"","url":"https://api.github.com/users/pavelkrcma","html_url":"https://github.com/pavelkrcma","followers_url":"https://api.github.com/users/pavelkrcma/followers","following_url":"https://api.github.com/users/pavelkrcma/following{/other_user}","gists_url":"https://api.github.com/users/pavelkrcma/gists{/gist_id}","starred_url":"https://api.github.com/users/pavelkrcma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavelkrcma/subscriptions","organizations_url":"https://api.github.com/users/pavelkrcma/orgs","repos_url":"https://api.github.com/users/pavelkrcma/repos","events_url":"https://api.github.com/users/pavelkrcma/events{/privacy}","received_events_url":"https://api.github.com/users/pavelkrcma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T21:03:02Z","updated_at":"2018-09-07T21:03:02Z","closed_at":null,"author_association":"NONE","body":"Android native build is broken because a lot of things in NDK was changed since API level 21.\r\n\r\n## Quick fix\r\nTo make it work again with latest NDK just add this to sys/ndk-gcc:\r\n<code>\r\nCFLAGS=\"${CFLAGS} -I${PLATFORM_PATH}/include -I${PROGDIR}/sysroot/usr/include -I${PROGDIR}/sysroot/usr/include/${NDKPFX}\"\r\n</code>\r\nand increase API level to 28 (latest), now non-logically in variable ANDROID_LOLIPOP\r\n\r\n## Final solution\r\nCurrently, this problem is solved by so-called standalone toolchain (see https://developer.android.com/ndk/guides/standalone_toolchain). I would recommend switch from link to NDK to link to standalone toolchain generated by an user according real needs. It solves a lot of issues and makes most of scripts related to android obsolete."}}
{"actor":{"display_login":"pavelkrcma"}}