Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Versión inicial presentación Android Studio y Gradle. .

1,979 views

Published on

El objetivo de la charla es intentar convencer y motivar a los más excépticos a utilizar Android Studio junto con Gradle. Explicando, entre otras cosas, como incrementar la productividad con las últimas características y plugins de ambos, proponiendo soluciones a los errores más habituales y mostrando en una demo las muchas ventajas que ofrece.

Published in: Software
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Versión inicial presentación Android Studio y Gradle. .

  1. 1. TOC I. Importancia del IDE II. Android Studio I. Características II. Demo III. FAQ IV. Plugins III. Gradle I. Características II. Plugins III. Demo IV. Nuevo Manifest Merger V. Depurar con Android Studio I. Demo
  2. 2. ¿El tamaño IDE Importa?
  3. 3. ¿El tamaño IDE Importa?
  4. 4. I Android Studio • BETA y IDE Oficial • Idea Community Edition • Creado para nosotros! • Integración de gradle • Actualizaciones MisRazones ❤
  5. 5. ¿Mejor que ?
  6. 6. Características de Android Studio
  7. 7. Soporte para Gradle
  8. 8. Creación de Proyecto
  9. 9. Editor de Proyecto
  10. 10. Actividades y mucho más
  11. 11. Editor de Navegación
  12. 12. Edición de ProGuard
  13. 13. Fixs Automáticos
  14. 14. Edición de recursos
  15. 15. Soporte xliff
  16. 16. Integración DDMS
  17. 17. Integración DDMS
  18. 18. Integración DDMS
  19. 19. Integración DDMS
  20. 20. Generador Assets
  21. 21. Layout – Previsualización
  22. 22. Layout – Selector color
  23. 23. Layout – RTL
  24. 24. Layout –Vista de APIs
  25. 25. Layout – Soporte API L
  26. 26. Estructura de archivos Android … disponible en la versión 0.8.2 … https://www.youtube.com/watch?v=hu4U8XKmJGA
  27. 27. Atributo tools • ignore • targetApi • locale • context • layout • listitem / listheader / Listfooter • showIn goo.gl/9etE7d
  28. 28. tools para todo goo.gl/Ac8XJI
  29. 29. Soporte Android Wear
  30. 30. Soporte Android Wear
  31. 31. Lint
  32. 32. Lint – Nivel API
  33. 33. Lint – Errores Comunes
  34. 34. Lint – Errores Comunes
  35. 35. Lint – Cast
  36. 36. Lint – Dependencias
  37. 37. Análisis de código
  38. 38. Firmar APPs
  39. 39. Atajos • Ctrl+D Duplicar • Shift+F6 Refactorizar o renombrar • Alt+Enter Fix rápido. • Alt+Insert Generar • Ctrl+N Encontrar clases • Ctrl+Shift+N Encontrar archivos • Shift+Shift Buscar cualquier tipo • F4 Entrar configuración proyecto
  40. 40. ...y aún hay muchísimo más
  41. 41. Demo
  42. 42. FAQ ¿Alguna versión de Android Studio es estable? ¿Puedo migrar proyectos desde eclipse? ¿Cómo no tener problemas después de actualizar Android Studio?
  43. 43. Plugins Útiles Los que utilizo: • Markdown http://goo.gl/uV5Rbe • Genymotion http://goo.gl/Tn8QQZ • ButterKnife http://goo.gl/JUBtMj • Parcelable http://goo.gl/s815Qy Y hay muchísimos más!
  44. 44. I Gradle too • Groovy DSL, fácil. • Variantes de aplicación • Gestión dependencias Maven • Manejo de keystores • Modo Offline • Compilaciones Incrementales • Hecho por Gradleware • Reemplaza Ant MisRazones ❤
  45. 45. ¿Cómo funciona Gradle?
  46. 46. Estructura de Proyecto Un proyecto muchos módulos
  47. 47. settings.gradle
  48. 48. Proyecto  build.gradle
  49. 49. Repositorios Gradle repositories { jcenter() mavenCentral() mavenLocal() ivy { url 'http://repo.mycompany.com' } maven { url 'https://www.testfairy.com/maven' } flatDir { dirs 'prebuilt-libs' } }
  50. 50. gradle-wrapper.properties
  51. 51. Módulo  build.gradle
  52. 52. Dependencias Gradle
  53. 53. Dependencias Gradle dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v13:+' compile 'com.google.android.support:wearable:+' compile 'com.google.android.gms:play-services-wearable:+‘ }
  54. 54. Estructura de Carpetas sourceSets { main { manifest { srcFile ‘AndroidManifest.xml' } java { srcDir 'src' } res { srcDir 'res' } assets { srcDir 'assets' } resources { srcDir 'src' } } androidTest.setRoot(‘androidTest') }
  55. 55. Build Type buildTypes { debug { buildConfigField "boolean", "KAMIL", "false" } release { buildConfigField "boolean", "KAMIL", "true" runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt') } } BuildConfig.KAMIL
  56. 56. Build Type Debug Release Release Alpha Beta Debug
  57. 57. Product Flavor productFlavors { gratis { applicationId 'es.droidcon.com.free' versionCode 2 } pago { applicationId 'es.droidcon.com.paid' versionCode 1 } }
  58. 58. Variants Build Type Product flavor PagoDebug Pago Debug Variant
  59. 59. La magia de Gradle
  60. 60. La magia de Gradle
  61. 61. signingConfigs signingConfigs { release { keyAlias 'test' keyPassword System.getenv(“KEY_PASSWORD") storeFile file('keystore.test.jks') storePassword System.getenv(“STORE_PASSWORD") } }
  62. 62. FlavorGroups Soporte para multi-apk
  63. 63. Crea tus propias tasks task testfairyAllRelease << { android.productFlavors.all { theProductFlavor -> tasks.getByName("testfairy${theProductFlavor.name.capitalize()}Release").execute() } } testfairyAllRelease.dependsOn assembleRelease
  64. 64. Plugins para Gradle • sdk-manager-plugin http://goo.gl/m8WVwO • Gradle Maven Push http://goo.gl/aWtTbF • Testfairy gradle plugin. http://goo.gl/QpNJ4D
  65. 65. Demo 2
  66. 66. Nuevo Manifest Merger • Control explicito en la fusión. • Es posible desactivarlo. android { useOldManifestMerger false #por defecto }
  67. 67. Nuevo Manifest Merger <activity android:name=“droidcon.com.MainActivity" android:label=“Droidcon" android:screenOrientation="portrait" tools:merge="override“ tools:replace="label" />
  68. 68. Manifest > Marker .. xmlns:tools="http://schemas.android.com/tools"/> <activity android:name=“droidcon.com.MainActivity" android:label=“Droidcon" android:icon=“@drawable/icon“ tools:selector=“com.droidcon.lib" tools:replace="label, icon" />
  69. 69. Manifest > Placeholder <activity android:name=".Main"> <intent-filter> <action android:name="${applicationId}.foo"> </action> </intent-filter> </activity>
  70. 70. Hay más en … http://tools.android.com/te ch-docs/new-build- system/user- guide/manifest-merger
  71. 71. Depuración en Android (1) • Analizar y filtrar el log del sistema. • Introducir filtros en logcat.
  72. 72. Depuración en Android (1) • Log.i Info • Log.d Debug • Log.e Error • Log.v Verbose • LOG.w Warm • Log.wtf (what terrible error)
  73. 73. Depuración en Android (2) • Mediante break-points ( puntos de parada)
  74. 74. Depuración en Android (2) • Evaluación de expresiones en puntos de parada.
  75. 75. Depuración en Android (2) • Análisis de variables y objetos
  76. 76. Depuración en Android (3) • Analizando utilizando herramientas de DDMS **
  77. 77. Depuración en Android (4) • Analizando métricas vía TestFairy.com para obtener videos, estadísticas, errores, logs, uso de cpu, uso de red…etc
  78. 78. La última demo
  79. 79. ¡Gracias a todos! Referencias: Guía usuario Gradle http://goo.gl/5b89Ft Android Develop http://developer.android.com/training/index.html Tools Android http://tools.android.com/ Android Studio http://developer.android.com/sdk/installing/studio.html Comunidad de Android Developers. Y otras fuentes que olvido mencionar. @KamilZabdyr

×