Android Studio Configuration in Androidannotations

Source: Internet
Author: User

Today just hollow read about androidannotations this thing, this thing found also is derived from other three-party framework, specific is what frame has not remember, in short, this thing let me very is lingering, although at that time saw this thing very surprised, It is also anxious to quickly get in and see what's going on.

is also because of the work reason, to tell the truth I also is a dedicated small angry green, suffer not the pattern, and then has been delayed to today.

Here is the reason why I write this blog today, I am very angry and angry here, this thing Chinese version of very few people write, write the basic can not see, followed by a blog by n Many people copy, I also hehe.

So let's start with today's topic configuration.

The first is the project build gradle file configuration see:

 

Here are some of the blue part of the point ha, here is the key name of this configuration.

Buildscript {    repositories {        mavencentral ()///---Be careful here, not  jcenter ()    }    dependencies {        ' com.android.tools.build:gradle:2.2.0 '        // Note:do not place your application dependencies here; they belong         // In the individual module build.gradle files        Classpath ' com.neenbedankt.gradle.plugins:android-apt:1.8 '}    }

Next is the configuration of build Gradle in module:

The above is about the configuration of its androidannotions in Gradle

Apply plugin: ' Com.android.application 'Apply plugin:' Com.neenbedankt.android-apt 'Android {compilesdkversion24buildtoolsversion"24.0.3"Defaultconfig {ApplicationID"Com.helloworld"minsdkversion15targetsdkversion21stVersioncode1Versionname"1.0"Testinstrumentationrunner"Android.support.test.runner.AndroidJUnitRunner"} buildtypes {release {minifyenabledfalseproguardfiles Getdefaultproguardfile (' Proguard-android.txt '), ' Proguard-rules.pro '}}}def aaversion= ' 4.1.0 '//your desired version, for example the latest stable:4.1.0Dependencies {Compile Filetree (dir:' Libs ', include: [' *.jar ']) Androidtestcompile (' com.android.support.test.espresso:espresso-core:2.2.2 ', {Exclude group:' Com.android.support ', module: ' Support-annotations '}) Compile' com.android.support:appcompat-v7:24.1.0 'Testcompile' junit:junit:4.12 'Apt"Org.androidannotations:androidannotations: $AAVersion"Compile"Org.androidannotations:androidannotations-api: $AAVersion"}

Android Studio configuration in Androidannotations

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.