zoukankan      html  css  js  c++  java
  • Android框架之AndroidAnnotations实战

      方案一:

        下载 androidannotations-bundle-3.3.2.zip

      方案二:

          楼主选用开发环境:android studio

        新建项目  修改app 下的build.gradle

        对应的是Gradle选项

          

      

    apply plugin: 'com.android.application'
    apply plugin: 'android-apt'
    def AAVersion = '3.3.2'
    
    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            // replace with the current version of the Android plugin
            classpath 'com.android.tools.build:gradle:1.2.3'
            // replace with the current version of the android-apt plugin
            classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
        }
    }
    
    repositories {
        mavenCentral()
        mavenLocal()
    }
    
    android {
        compileSdkVersion 22
        buildToolsVersion "23.0.0 rc2"
    
        defaultConfig {
            applicationId "com.androidannotations"
            minSdkVersion 14
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:22.2.0'
        apt "org.androidannotations:androidannotations:$AAVersion"
        compile "org.androidannotations:androidannotations-api:$AAVersion"
    }
    
    apt {
        arguments {
            androidManifestFile variant.outputs[0].processResources.manifestFile
            // if you have multiple outputs (when using splits), you may want to have other index than 0
    
            // you should set your package name here if you are using different application IDs
            // resourcePackageName "your.package.name"
    
            // You can set optional annotation processing options here, like these commented options:
            // logLevel 'INFO'
            // logFile '/var/log/aa.log'
        }
    }

      

  • 相关阅读:
    C++指针
    C++ 结构体和枚举
    提供openssl -aes-256-cbc兼容加密/解密的简单python函数
    最新安全学习视频
    C++复合类型(结构体)
    C艹复合类型(字符串)
    C++复合类型(数组)
    python 搜索引擎Whoosh中文文档和代码 以及jieba的使用
    JSP基础之 C标签中的 varStatues属性
    JSP进阶 之 SimpleTagSupport 开发自定义标签
  • 原文地址:https://www.cnblogs.com/Free-Wind/p/4669109.html
Copyright © 2011-2022 走看看