D 2020-02-02T11:05:01.384 J icomment I\stried\sjdk8\s(Oracle\sJava\s8\sDevelopment\sKit\sLTS)\swith\sandroid-sdk-25.2.5\sand\sthe\sbones\spatch\syou\ssuggested,\sbut\sI\sstill\srun\sinto\stroubles\sbut\slooks\slike\sonly\sfor\slicense\sreasons.\sThat\smay\sbe\srelated\sto\sthe\sfact\sI\shad\sto\srun\severything\sas\sroot,\selse\smy\s$ANDROID_HOME\sis\snot\swritable.\sThat's\swhat\sI\sdid:\r\n\r\n#\sexport\sJAVA_HOME=/usr/lib/jvm/java-8-jdk/\r\n#\sexport\sANDROID_HOME=/opt/android-sdk/\r\n#\s./bones\s\r\n\r\nAnd\sI\sget:\r\n\r\nNDK\sis\smissing\sa\s"platforms"\sdirectory.\r\nIf\syou\sare\susing\sNDK,\sverify\sthe\sndk.dir\sis\sset\sto\sa\svalid\sNDK\sdirectory.\s\sIt\sis\scurrently\sset\sto\s/opt/android-sdk/ndk-bundle.\r\nIf\syou\sare\snot\susing\sNDK,\sunset\sthe\sNDK\svariable\sfrom\sANDROID_NDK_HOME\sor\slocal.properties\sto\sremove\sthis\swarning.\r\n\r\nFile\s/root/.android/repositories.cfg\scould\snot\sbe\sloaded.\r\nChecking\sthe\slicense\sfor\spackage\sAndroid\sSDK\sBuild-Tools\s25.0.3\sin\s/opt/android-sdk/licenses\r\nWarning:\sLicense\sfor\spackage\sAndroid\sSDK\sBuild-Tools\s25.0.3\snot\saccepted.\r\nChecking\sthe\slicense\sfor\spackage\sAndroid\sSDK\sPlatform\s16\sin\s/opt/android-sdk/licenses\r\nWarning:\sLicense\sfor\spackage\sAndroid\sSDK\sPlatform\s16\snot\saccepted.\r\n\r\nFAILURE:\sBuild\sfailed\swith\san\sexception.\r\n\r\n*\sWhat\swent\swrong:\r\nA\sproblem\soccurred\sconfiguring\sroot\sproject\s'AndroWishApp'.\r\n>\sYou\shave\snot\saccepted\sthe\slicense\sagreements\sof\sthe\sfollowing\sSDK\scomponents:\r\n\s\s[Android\sSDK\sPlatform\s16,\sAndroid\sSDK\sBuild-Tools\s25.0.3].\r\n\s\sBefore\sbuilding\syour\sproject,\syou\sneed\sto\saccept\sthe\slicense\sagreements\sand\scomplete\sthe\sinstallation\sof\sthe\smissing\scomponents\susing\sthe\sAndroid\sStudio\sSDK\sManager.\r\n\s\sAlternatively,\sto\slearn\show\sto\stransfer\sthe\slicense\sagreements\sfrom\sone\sworkstation\sto\sanother,\sgo\sto\shttp://d.android.com/r/studio-ui/export-licenses.html\r\n\r\n*\sTry:\r\nRun\swith\s--stacktrace\soption\sto\sget\sthe\sstack\strace.\sRun\swith\s--info\sor\s--debug\soption\sto\sget\smore\slog\soutput.\r\n\r\nBUILD\sFAILED\r\n\r\nTotal\stime:\s13.768\ssecs J login anonymous J mimetype text/x-markdown K 3b7c2cb45d2eee2ca0e3ad51e41f08154d373a96 U anonymous Z f41c3c1f74df655fd8b1951633a6b207