{"id":466,"date":"2015-09-28T09:00:55","date_gmt":"2015-09-28T09:00:55","guid":{"rendered":"http:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=466"},"modified":"2015-09-28T10:03:24","modified_gmt":"2015-09-28T10:03:24","slug":"android-studio-ndk-windows-7","status":"publish","type":"post","link":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=466","title":{"rendered":"Android Studio + NDK + Windows 7"},"content":{"rendered":"<a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"http:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;t=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207&#038;s=100&#038;p&#091;url&#093;=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;p&#091;images&#093;&#091;0&#093;=&#038;p&#091;title&#093;=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;text=Check%20this%20out%20%2F%20Mira%20esto\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-reddit nolightbox\" data-provider=\"reddit\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Reddit\" href=\"http:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;title=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"reddit\" title=\"Share on Reddit\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/reddit.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-pinterest nolightbox\" data-provider=\"pinterest\" target=\"_blank\" rel=\"nofollow\" title=\"Pin it with Pinterest\" href=\"http:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;media=&#038;description=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"pinterest\" title=\"Pin it with Pinterest\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/pinterest.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"http:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466&#038;title=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;margin-right:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-16 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=Android%20Studio%20%2B%20NDK%20%2B%20Windows%207&#038;body=Check%20this%20out%20%2F%20Mira%20esto:%20https%3A%2F%2Fjafma.net%2Fana%2Ftheweekendarchaeologist%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%252F466\" style=\"font-size: 0px; width:16px;height:16px;margin:0;margin-bottom:5px;\"><img loading=\"lazy\" decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"16\" height=\"16\" style=\"display: inline; width:16px;height:16px; margin: 0; padding: 0; border: none; box-shadow: none;\" src=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/32x32\/mail.png\" \/><\/a><p style=\"text-align: justify;\"><a id=\"spanish\"><\/a><br \/>\n<a href=\"#english\">[In English]<\/a><\/p>\n<p style=\"text-align: justify;\">Estos son los pasos necesarios para instalar Android Studio y NDK sobre\u00a0Windows 7\u00a0(en colaboraci\u00f3n con <a href=\"http:\/\/jafma.net\/\" target=\"_blank\">Juan Antonio Fern\u00e1ndez Madrigal<\/a>)<\/p>\n<p style=\"text-align: justify;\"><em><span style=\"text-decoration: underline;\">Consideraciones previas<\/span><br \/>\n<\/em><\/p>\n<ul style=\"text-align: justify;\">\n<li>No es posible instalarlo en una m\u00e1quina virtual, ya que el emulador necesita para funcionar virtualizaci\u00f3n, no disponible dentro de una m\u00e1quina virtual.<\/li>\n<li>Hacen falta bastantes gigas de disco para instalarlo todo, as\u00ed que hay que asegurarse de tener suficiente espacio.<\/li>\n<li><a href=\"https:\/\/developer.android.com\/training\/basics\/firstapp\/creating-project.html\" target=\"_blank\">Aqu\u00ed<\/a> pueden encontrarse tutoriales para aprender a programar con Android Studio.<\/li>\n<li>Bibliograf\u00eda disponible en <a href=\"http:\/\/jabega.uma.es\/\" target=\"_blank\">J\u00e1bega<\/a> (cat\u00e1logo de la Biblioteca de la Universidad de M\u00e1laga)\n<ul>\n<li><em>El Gran libro de Android : [actualizado a la versi\u00f3n KitKat y Android L Preview<\/em>] \/ Jes\u00fas Tom\u00e1s Giron\u00e9s<\/li>\n<li><em>Building Android apps<\/em> \/ Mike McGrath<\/li>\n<li><em>Manual imprescindible de desarrollo de aplicaciones para Android. Edici\u00f3n 2015<\/em>\/ Joan Ribas Lequerica<\/li>\n<li><em>Profesional Android open accesory programing with Arduino<\/em>[Recurso electr\u00f3nico]\/ Andreas G\u00f6ransson,<\/li>\n<li><em>Android Studio application development<\/em> [Recurso electr\u00f3nico] \/ Bel\u00e9n Cruz Zapata.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><em>Primer paso: instalaci\u00f3n de Java<\/em><\/span><\/p>\n<ol style=\"text-align: justify;\">\n<li>Obtener de <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\" target=\"_blank\">el Java jdk 8<\/a> (a partir del 7 ya vale), no el jre, que s\u00f3lo es el entorno de ejecuci\u00f3n. En Windows 7 simplemente se baja y ejecuta el instalador .exe. Despu\u00e9s es necesario <a href=\"https:\/\/www.java.com\/es\/download\/help\/path.xml\" target=\"_blank\">incluir manualmente el path<\/a> de Java (y de su directorio <em>bin<\/em>) en la variable de entorno de Windows 7 <em>Path<\/em>; si alguien no encuentra el path de Java, puede buscar d\u00f3nde se ha realizado la instalaci\u00f3n en <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javaseproducts\/mission-control\/java-mission-control-1998576.html\" target=\"_blank\">Java Mission Control<\/a>, el programa de configuraci\u00f3n de Java que se instala tambi\u00e9n.<\/li>\n<\/ol>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><em>Segundo paso: instalaci\u00f3n de Android Studio\u00a0<\/em><\/span><\/p>\n<ol>\n<li style=\"text-align: justify;\">Descargar Android Studio Bundle de la <a href=\"https:\/\/developer.android.com\/sdk\/index.html\" target=\"_blank\">web<\/a> (para\u00a0Windows es un ejecutable), ejecutar el .exe y aceptar todo en la Standard Installation.<\/li>\n<li style=\"text-align: justify;\">Una vez instalado, ejecutar <em>Tools -&gt; Android -&gt; SDK Manager<\/em>\u00a0\u00a0y\u00a0marcar para instalar las <em>build-tools 21<\/em> y la API 21. Tambi\u00e9n es necesario instalar Froyo (2.2. API 8). Esto puede tardar bastante, sobre todo por wifi.<\/li>\n<li style=\"text-align: justify;\">En <em>Configure-&gt;Project Defaults-&gt;Project structure<\/em> completar los paths del SDK\u00a0y de\u00a0Java. Volver hacia atr\u00e1s y empezar un nuevo proyecto (Blank Activity) que use la API 8 (Froyo). En el desplegable del rendering de la aplicaci\u00f3n, usar la 21 en vez de la 22.<\/li>\n<li style=\"text-align: justify;\">En <em>File -&gt;\u00a0Settings -&gt; Build, Execution, Deployment -&gt; Build Tools -&gt; Gradle<\/em>, activar la casilla <em>Offline work<\/em> (si no, la compilaci\u00f3n y ejecuci\u00f3n son\u00a0lent\u00edsimas). El problema de la lentitud de Android Studio en Windows 7 y esta soluci\u00f3n se comentan en <a href=\"http:\/\/stackoverflow.com\/questions\/30817871\/android-studio-is-too-slow\" target=\"_blank\">este enlace de Stackoverflow<\/a>.<\/li>\n<li style=\"text-align: justify;\">En <em>Tools -&gt; Android -&gt; AVD Manager<\/em> a\u00f1adir, al Nexus 5 API 22, un Samsung Galaxy con la c\u00e1mara trasera emulada. Desactivar la opci\u00f3n <em>Use Host GPU<\/em>.\u00a0Es especialmente lento el arranque la primera vez y cuando se crea una nueva aplicaci\u00f3n y tiene que empezar el indexado.<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em>Tercer paso: instalaci\u00f3n de NDK<\/em><\/span><\/p>\n<ol>\n<li>Este paso es muy sencillo: en <em>Tools -&gt; \u00a0Android -&gt; SDK Manager-&gt;\u00a0SDK Tools -&gt; Android NDK<\/em><\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em>Desarrollo de aplicaciones<\/em><\/span><\/p>\n<ul>\n<li><a href=\"http:\/\/developer.android.com\/training\/basics\/firstapp\/running-app.html\" target=\"_blank\">Tutorial b\u00e1sico<\/a><\/li>\n<\/ul>\n<p><a id=\"english\"><\/a><br \/>\n<a href=\"#spanish\">[En espa\u00f1ol]<\/a><\/p>\n<p style=\"text-align: justify;\">These are the steps to follow in order to install Android Studio and NDK on Windows 7 (post written in collaboration with\u00a0<a href=\"http:\/\/jafma.net\/\" target=\"_blank\">Juan Antonio Fern\u00e1ndez Madrigal<\/a>)<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><em>Preliminary requests<\/em><\/span><\/p>\n<ul>\n<li style=\"text-align: justify;\">This software cannot be installed on a virtual machine, since the emulator requires virtualization tools, which are not available in a virtual machines.<\/li>\n<li style=\"text-align: justify;\">Both programs are quite demanding in hard drive space: be sure you have enough before you begin the installation.<\/li>\n<li style=\"text-align: justify;\"><a href=\"https:\/\/developer.android.com\/training\/basics\/firstapp\/creating-project.html\" target=\"_blank\">Here<\/a> you can find several tutorials to learn how to program with Android Studio.<\/li>\n<li>Brief list of suggested readings (all of them available at <a href=\"http:\/\/jabega.uma.es\/\" target=\"_blank\">J\u00e1bega<\/a>, the catalogue of the Library of M\u00e1laga University)\n<ul>\n<li style=\"text-align: justify;\"><em>El Gran libro de Android : [actualizado a la versi\u00f3n KitKat y Android L Preview]<\/em> \/ Jes\u00fas Tom\u00e1s Giron\u00e9s<\/li>\n<li style=\"text-align: justify;\"><em> Building Android apps<\/em> \/ Mike McGrath<\/li>\n<li style=\"text-align: justify;\"><em> Manual imprescindible de desarrollo de aplicaciones para Android. Edici\u00f3n 2015<\/em>\/ Joan Ribas Lequerica<\/li>\n<li style=\"text-align: justify;\"><em>Profesional Android open accesory programing with Arduino [Recurso electr\u00f3nico]<\/em>\/ Andreas G\u00f6ransson,<\/li>\n<li style=\"text-align: justify;\"><em> Android Studio application development [Recurso electr\u00f3nico]<\/em> \/ Bel\u00e9n Cruz Zapata.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><span style=\"text-decoration: underline;\"><em>First step: installing Java<\/em><\/span><\/p>\n<ol>\n<li style=\"text-align: justify;\">Get <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html\" target=\"_blank\">Java jdk 8<\/a> (though it works from jdk 7); it is important to choose jdk and not jre (jre is just the running environment). For Windows 7 just download and run the .exe file. After that, you have to\u00a0<a href=\"https:\/\/www.java.com\/en\/download\/help\/path.xml\" target=\"_blank\">manually add the\u00a0path<\/a>\u00a0(and its <em>bin<\/em> folder) to the Windows 7 environment variable <em>Path<\/em>; if you do not know which is that Java path, you can check it using <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javaseproducts\/mission-control\/java-mission-control-1998576.html\" target=\"_blank\">Java Mission Control<\/a>, the Java configuration application that has been installed along with Java.<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em>Second step: installing Android Studio<\/em><\/span><\/p>\n<ol>\n<li style=\"text-align: justify;\">Download Android Studio Bundel from the\u00a0<a href=\"https:\/\/developer.android.com\/sdk\/index.html\" target=\"_blank\">web<\/a>\u00a0(for Windows is an executable file), run the .exe and accept every default option of the Standard Installation.<\/li>\n<li style=\"text-align: justify;\">After that, go to <em>Tools -&gt; Android -&gt; SDK Manager<\/em>\u00a0and check for installing the <em>build-tools 21<\/em>\u00a0and API 21. You also have to install\u00a0Froyo (2.2. API 8).\u00a0This can take a long time, especially if you are connected through a wifi.<\/li>\n<li style=\"text-align: justify;\">Go to\u00a0<em>Configure-&gt;Project Defaults-&gt;Project structure<\/em>\u00a0and add the paths of the SDK\u00a0and Java. Go back and start a new project (Blank Activity) with\u00a0API 8 (Froyo). \u00a0Choose, in the dropdown control \u00a0for rendering, version 21 instead of 22.<\/li>\n<li style=\"text-align: justify;\">In <em>File -&gt;\u00a0Settings -&gt; Build, Execution, Deployment -&gt; Build Tools -&gt; Gradle<\/em>, check the\u00a0<em>Offline work<\/em>\u00a0box (if not, compilation and execution are painfully slow). This issue about Android Studio being so slow under Windows 7 and its solution\u00a0are explained in <a href=\"http:\/\/stackoverflow.com\/questions\/30817871\/android-studio-is-too-slow\" target=\"_blank\">this link at Stackoverflow<\/a>.<\/li>\n<li style=\"text-align: justify;\">Add, using <em>Tools -&gt; Android -&gt; AVD Manager<\/em>,\u00a0a new Samsung Galaxy device with emulated back camera. Uncheck the box <em>Use Host GPU<\/em>. It is especially slow when you run the emulator for the first time, and when a new app is created and Android Studio has to index from scratch.<\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em>Third step: installing NDK<\/em><\/span><\/p>\n<ol>\n<li>This step is a piece of cake:<em>Tools -&gt; \u00a0Android -&gt; SDK Manager-&gt;\u00a0SDK Tools -&gt; Android NDK<\/em><\/li>\n<\/ol>\n<p><span style=\"text-decoration: underline;\"><em>Applications development<\/em><\/span><\/p>\n<ul>\n<li><a href=\"http:\/\/developer.android.com\/training\/basics\/firstapp\/running-app.html\" target=\"_blank\">Basic tutorial<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[In English] Estos son los pasos necesarios para instalar Android Studio y NDK sobre\u00a0Windows 7\u00a0(en colaboraci\u00f3n con Juan Antonio Fern\u00e1ndez Madrigal) Consideraciones previas No es posible instalarlo en una m\u00e1quina virtual, ya que el emulador necesita para funcionar virtualizaci\u00f3n, no disponible dentro de una m\u00e1quina virtual. Hacen falta bastantes gigas de disco para instalarlo todo, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/?p=466\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Android Studio + NDK + Windows 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,2],"tags":[35,41],"_links":{"self":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/466"}],"collection":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=466"}],"version-history":[{"count":23,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=\/wp\/v2\/posts\/466\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jafma.net\/ana\/theweekendarchaeologist\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}