Fixing gradle issue with Android Studio 1.0 RC 4 Release


Android Studio 1.0 RC4 is now available in canary and beta channels. This version of Android Studio uses gradle 1.0.0-rc4. Updated Android Studio may cause gradle issues in your working Project so to fix the issue, update the grade settings and do some other minor changes. To update your project to use the this gradle version change gradle.build file dependency in your projects root to :
classpath 'com.android.tools.build:gradle:1.0.0-rc4'
And then in your modules build.gradle you have to replace 'runProguard'  with 'minifyEnabled'.
Also if you are using:
<manifest
package="com.example.demo"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> 


<uses-sdk tools:node="replace" / >

</manifest>
Then you have to remove the xmlns:tools and the uses-sdk from the AndroidManifest.xml file. For more details: http://tools.android.com/tech-docs/new-build-system

Comments

Popular posts from this blog

Automate file upload in Selenium IDE

How To Install and Configure Nextcloud