Auto increase version code after each build in Android - android

Is there a way to auto increase version code after each build in Android? I'm using Gradle.
Thanks

Found a custom build.gradle file that does the trick here: link

Related

Not able to add dependency to android project in flutter

Hello I am new to flutter and i want to do native function calls using flutter, i wrote an sample native code app and it is working as expected. Now i want to use some packages on my android code, which is platform specific.
I have added my dependcies in my build.gradle file and it the gradle build is success,
But i cannot use the package there,
say for example: i have added the dependency for the com.squareup.okhttp3:okhttp:3.4.2 and gradle build is success and now icannot access their methods and other stuffs. Please let me know to what to do with it. Thanks in advance.enter image description here
Finally it worked, i opened the android project as an new android project in android studio which resolved the issue.

how to add Material-Animations library to my project in android studio

i want to add Material-Animations library to my android studio project,i don't know how to add it to my project,there is not any aar file or gradle command in it's document
aren't libraries like this usable for other developers?
sorry if my question is too basic
thanks in advance
Edit:
solved,this is not a library!
It looks like you don't need to add it. It uses android native libraries, so it's more like a tutorial, you can use the code without adding anything.

Correct version of droidninja for correct example.

I am trying to implement file picker using droid ninja but it seems the version of droidninja doesn't have exact same functions I am using following an example. Can anyone suggest me correct version of droidninja with correct example.Both should be compatible. I am using Android studio 2.3.
Thanks in advance.
The latest version of this library is 2.0.3.
Just add your app's gradle file to this:
dependencies {
compile 'com.droidninja:filepicker:2.0.3'
}
This Link clearly shows the necessary instructions.

Copy on steroide incompatible

I'm using Android Studio and I want to copy my code keeping the highlighting of my text. I found this plugin for IntelliJ Idea : https://plugins.jetbrains.com/plugin/7198 (copy on steroide) but when I try to install it I've got this error :
"Following plugins are incompatible with current IDE build : 'Copy' on
steroide"
Does someone know how to fix it? Or know another plugin to copy text with colors?
Thank's in advance !
"'Copy on steroids' plugin functionality is bundled with the platform now - available for testing in IDEA 14 EAP."
It works out of the box in Android Studio 1.2

Intellij IDEA doesn't show up available suggestions for android resources in Kotlin files

I have a Kotlin file where I want access some Android resources through R.java file. In this case Intellij IDEA doesn't show up available suggestions kinda like R.layout.main
Please look at this screenshot
Is it an issue in IDEA/Kotlin plugin or I have to configure something?
Kotlin plugin 0.7.270.1
Intellij IDEA IC-135.1019
Andorid API 19
Java 7
Android Build tools 19.1
Looks like a bug in Kotlin plugin. Please report bugs to our issue tracker: http://youtrack.jetbrains.com/issues/KT
Long shot but, I would recommend following the docs for android http://kotlinlang.org/docs/tutorials/kotlin-android.html
I can see, for example, in your screenshot you don't have separate folders for kotlin and java with /src/main/java /src/main/kotlin
Maybe seeing your gradle file could be of some help.
Right now I'm using kotlin 0.10.195 with android 1.1, build tools 21.1.2 and gradle plugin 1.0.1 , and suggestions are working fine.

Categories

Resources