• 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'
        }
    }

      

  • 相关阅读:
    MVC @Html.TextBox 添加属性和样式
    当项目中出现“未能找到与此解决方案关联的源代码管理提供程序。项目将视为不受源代码管理”
    MVC视图中读取ViewBag传递过来的HashTable表数据
    使用NPOI导入导出标准的Excel
    网站文件下载代码
    C# 刷新页面浏览次数(点击量)+1
    sed
    Shell变量的取用、删除、取代与替换
    non-member function cannot have cv-qualifier
    awk学习
  • 原文地址:https://www.cnblogs.com/Free-Wind/p/4669109.html
Copyright © 2020-2023  润新知