Android studio gradle multi-channel packaging method based on Youmeng
Android studio uses gradle for project construction, which makes it much more convenient for us to develop apps. Today, I'll give you a few points about the convenience of using gradle.
1、 Third, Android studio gradle relies on unified management. Second, Android studio gradle's multi-channel packaging based on Youmeng. Third, Android studio's security management signature file keystroe and signature password
I haven't written a blog for a long time. Today I write an article about multi-channel packaging. First, we need to download the jar package of Youmeng, and then configure it according to the document. (there is no more explanation here, just look at my code) document address: http://dev.umeng.com/analytics/android-doc/integration?spm=0.0.0.0.Szgw63
This is my mainactivity
A tool class is written here to obtain the value corresponding to the meta data node of the manifest file
This is the configuration of the manifest file
The following is the core gredle configuration. Here is the configuration of the test environment (it can not be configured and does not affect multi-channel)
Channel configuration
Package apk
Installation test first test the installation package to the channel list on the official website of Youmeng.