Micro-dimensional is a good open-source third-party microblogging, it is worth learning
Click to enter his GitHub view
My environment settings:
Android Studios 1.1.0
gradle:2.2.1
sdk:22.0.0
Basic modifications
Pull down the code from GitHub and make the following changes as prompted by the Readme:
Gradle Construction
-Version
Latest Android SDK
Gradle
-Environment variables
Android_home
Gradle_home the bin into the path variable
Android SDK installation, all updated to the latest
Android SDK Build-tools
Google Repository
Android Support Repository
Android Support Library
-Remove Configuration
Remove the Crashlytics.start (this) from the androidmanifest.xml inside Com.crashlytics.ApiKey and globalcontext to avoid impacting four-dimensional crash statistics
-Compile
./gradlew Assembledebug, compiled apk under BUILD/OUTPUTS/APK, the default is Debug.keystore signature, can coexist with the official version on Google Play
Further modifications
After changing the meaning of the above qii, Gradle build appears to be stuck for a long time.
Because of the domestic visit this address (Http://download.crashlytics.com/maven) has a problem, and in fact this is mainly used for the data statistics of the back crash, and Qii also said do not use his statistics, will affect the micro-dimensional data, So let's comment them out in the Build.gradle first.
Then build, there is a hint that the project depends on the Gradle version than I currently use the version, so modify the project gradle/wrapper/gradle-wrapper.properties. Modified Distributionurl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip
- Build, because my compiler warning switch is strict, but also changed a few code on the use of the problem, in fact, is not a problem, mainly the transfer parameter null transformation problem.
Build succeeded
Build succeeded,:
Micro-dimensional Learning notes-build