android - Migrating to GCM breaks the build process -


i'm trying migrate app , adding classpath 'com.google.gms:google-services:1.3.0-beta1' breaks build:

this top level gradle.build:

// top-level build file can add configuration options common sub-projects/modules.

buildscript {     repositories {         jcenter()     }     dependencies {         // note: not place application dependencies here; belong         // in individual module build.gradle files         classpath 'com.android.tools.build:gradle:1.1.0'         classpath 'com.github.hamsterksu:android-appversion-gradle-plugin:1.2.+'         classpath 'com.google.gms:google-services:1.3.0-beta1'     } }  allprojects {     repositories {         jcenter()         mavenlocal()         mavencentral()     } } 

doing fails build following message:

android studio error message

what went wrong: problem found configuration of task ':app:zipalignappdebug'.

file '/path../outputs/apk/app-app-debug-unaligned.apk' specified property 'inputfile' not exist.

i have found these problem too, , found because have using 22 buildtoolsversion

change buildtoolsversion version 23, , work again

open app/build.gradle

android {   compilesdkversion 22   buildtoolsversion "23.0.0 rc3"    defaultconfig {     applicationid "packagename.id"     minsdkversion 15     targetsdkversion 22     versioncode appversioncode     versionname appversionname   }   buildtypes {     release {       minifyenabled false       proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     }   }   packagingoptions {     exclude 'meta-inf/services/javax.annotation.processing.processor'   } } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -