惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
小众软件
小众软件
量子位
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Jina AI
Jina AI
T
Threat Research - Cisco Blogs
博客园_首页
The Hacker News
The Hacker News
C
Cyber Attacks, Cyber Crime and Cyber Security
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享
Security Latest
Security Latest
博客园 - 叶小钗
The Last Watchdog
The Last Watchdog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
Lohrmann on Cybersecurity
V
V2EX
P
Proofpoint News Feed
I
Intezer
云风的 BLOG
云风的 BLOG
Spread Privacy
Spread Privacy
罗磊的独立博客
H
Help Net Security
T
Tor Project blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
S
Schneier on Security
Blog — PlanetScale
Blog — PlanetScale
L
LINUX DO - 热门话题
D
DataBreaches.Net
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
Simon Willison's Weblog
Simon Willison's Weblog
Latest news
Latest news
P
Proofpoint News Feed
NISL@THU
NISL@THU
Y
Y Combinator Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
博客园 - Franky
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Security @ Cisco Blogs

博客园 - hehoge

mysql mybatis 日期查询 druid报错:javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat linux下安装Mysql mysql删除固定前缀的表 Unable to find a @SpringBootConfiguration xstream.fromXML 忽略没有的节点 Fatal error compiling: 无效的目标发行版: 1.8 NoSuchMethodError 一般是jar包冲突了 联通网络环境上无法访问http://repo1.maven.org/maven2/中央库解决,镜像库添加 如何在类中获取request,和网站路径 maven build 报release 400错误 mysql启动问题access denied for user 'root'@'localhost'(using password:YES) adapter结构异常记录 eclipse项目报红解决 Location Type Project 'testma' is missing required source folder: 'src/test/resources' testma Build 当遇到eclipse调试断点乱走数据不准确的时候,请maven clean,maven install git学习(一)与eclipse结合 反欺诈组之前接口项目学习 null值插入数据库会报错
Mac上操作 androidStudio
hehoge · 2017-09-27 · via 博客园 - hehoge
// 声明是Android程序
apply plugin: 'com.android.application'

android {
    signingConfigs {
    }
    compileSdkVersion 21
    buildToolsVersion '25.0.0'
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

       
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
    defaultConfig {
        applicationId "com.wbh.hoge.crmapp"
        minSdkVersion 21
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
        manifestPlaceholders = [UMENG_CHANNEL_VALUE: "channel_name"]
    }
    //移除lint检查的error
    lintOptions {
        abortOnError false
    }
    buildTypes {
        release {
            // 是否进行混淆
            minifyEnabled false
            // 混淆文件的位置
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors.all { flavor ->
        flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name]
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

}

dependencies {
    // compile 'com.umeng:fb:5.4.0'
    compile 'com.android.support:support-v4:21.+'
    compile fileTree(include: '*.jar', dir: 'libs')
    compile 'com.jiechic.library:xUtils:2.6.14'
    //compile files('libs/wbh-adapter-0.0.1-SNAPSHOT.jar')
    compile files('libs/universal-image-loader-1.9.5.jar')
}
repositories {
    jcenter()
    maven { url "https://raw.githubusercontent.com/umeng/mvn-repo-umeng/master/repository" }
}

这是无错的一个配置,真是费劲,好几天了,都不行,终于可以了;

gradle 这个插件,将从网上下载的文件,放到对应的文件夹下了:

 

/Applications/Android Studio.app/Contents/gradle/gradle-3.3

原本该路径中是没有gradle-3.3,硬加上的。不知道怎么设置全局的,否则建立个新项目就卡住不动了。