snipt

Ctrl+h for KB shortcuts

Text only

sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable.

1
2
3
4
5
Open the terminal window and enter the following:
export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk)

Once you have this set, you need to add this to the PATH environment variable
export PATH=$PATH:$ANDROID_HOME/bin
https://snipt.net/embed/dcaa2e1f32999dd44f9907a19e3495bf/
/raw/dcaa2e1f32999dd44f9907a19e3495bf/
dcaa2e1f32999dd44f9907a19e3495bf
text
Text only
5
2019-08-23T17:47:35
True
False
False
/api/public/snipt/136876/
sdkdir-is-missing-make-sure-to-generate-localproperties-using-android-update-project-or-to-inject-it-through-the-android_home-environment-variable-e54f799d
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Open the terminal window and enter the following: </span><span id="L-2"><a name="L-2"></a>export ANDROID_HOME=/Applications/adt-bundle/sdk (ng: write your own path to sdk) </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Once you have this set, you need to add this to the PATH environment variable </span><span id="L-5"><a name="L-5"></a>export PATH=$PATH:$ANDROID_HOME/bin </span></pre></div> </td></tr></table>
android, cordova