Micro-dimensional Learning notes-build

Source: Internet
Author: User

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
    1. 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.

    2. 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

    3. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.