gradle

Android Studio安装和配置的方法 & 错误解决

陌路散爱 提交于 2020-02-01 08:25:34
Android Studio终于到了1.0时代了,所以我也试着去学习了下如何使用它。上手确实比较麻烦,今天就分享下如何去下载并使用它。 一、下载 & 安装 大家可以去google给出的地址下载,我这里用的一个大神给出的最新地址,速度很快而且版本似乎总是最新的: 下载地址 : http://tools.android.com/download/studio/canary/latest PS:现在这个地址点进去后又会跳转到google的地址中,不知道以后会不会变。从google下的studio就是一个exe文件了 总之我下载好后是一个压缩包,解压到任意非中文目录下即可。 在Bin目录下就能找到适合自己系统的应用程序了 这个压缩包的好处是,自带Gradle,所以可以省去很多下载的功夫。 首先是导入studio的相关配置,如果你以前安装过,那么更新的时候就可以直接导入,不需要重新设置。 到了这一步的话,如果你以前用过eclipse,那么你肯定有下载安装过SDK,可以选择Custom,否则的话,选择Standard。这个教程假设我们已经安装了SDK了,选Custom。 Ok,现在就可以使用了,详细的使用教程帖上: http://06peng.com/archives/36 二、google提供的下载地址 http://developer.android.com/sdk/installing

Gradle for Android ( 构建变体 )

倖福魔咒の 提交于 2020-02-01 05:42:44
链接: http://77blogs.com/?p=38 https://www.cnblogs.com/tangZH/p/10999060.html 有时候我们一个app需要有不同的版本,不同的版本又会使用不同的配置,我们可以使用gradle进行管理。 Build types Product flavors Build variants Signing configurations 一、构建版本Build types: 常见的构建版本有debug与release。 buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } 自定义构建版本: custom { applicationIdSuffix ".custom" versionNameSuffix ".custom" minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs

Gradle多渠道打包

橙三吉。 提交于 2020-02-01 05:40:08
android打包(5) 版权声明:本文为博主原创文章,未经博主允许不得转载。 国内众多 Android 开发环境有众多的应用市场,产品存在着不同渠道统计的需求,为此android开发人员需要为每个应用市场发布一个安装包,这是一件很苦逼的事,更换成android studio之后自带的编译工具gradle其实已经可以实现多渠道打包的功能了;下面主要简单介绍一下gradle如何实现的多渠道打包。 (一)在androidmanifest.xml中定义mate-data标签 [html] view plain copy < manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "your.package.name" > < application > < meta-data android:name= "UMENG_CHANNEL" android:value= "{UMENG}" /> </ application > </ manifest > 这里需要注意的是:上面的value的值要和渠道名所对应,比如wandoujia里面要对应为你豌豆荚的渠道名称 (二)在build.gradle下的productFlavors定义渠道号: [html] view plain copy

HybridApp环境搭建(cordova)

前提是你 提交于 2020-01-31 23:42:52
HybridApp环境搭建 文章目录 HybridApp环境搭建 准备 cordova Java环境 android环境 gradle环境 构建项目 准备 cordova java环境 android 环境 gradle环境 构建项目,解决问题 cordova 有 npm 的话只需执行下面这条命令即可,如果没有npm去官网下载即可 npm install -g cordova 我用的版本是9.0.0 Java环境 在这里插入代码片java环境用的是java1.8版本的jdk,在网上下载即可,也可在官网下载最新的jdk 配置到环境变量里,根据自己安装的路径配置 我这里的是 JAVA_HOME = C:\Program Files\Java\jdk1.8.0_181 然后在path里添加%JAVA_HOME%\bin 打开cmd,输入java -version,如果出现版本就是配置成功了 android环境 下载android studio,让软件来帮我们下载环境 cordova打包需要安装gradle 需添加两个环境变量,还是根据你的位置来决定,这里是我配置的 ANDROID_HOME="C:\Users\你的用户名\AppData\Local\Android\Sdk" ANDROID_SDK_ROOT="C:\Users\你的用户名\AppData\Local\Android

Idea下 调试Spring源代码

巧了我就是萌 提交于 2020-01-31 19:41:49
1. 下载源代码 https://github.com/spring-projects/spring-framework 我选择版本5.1.x 2. 网上有说需要下载gradle,其实可以不用下载 3. build项目 4. 导入项目 需要注意的是 gradle 版本不对可能会出现很多奇奇怪怪的错误 总之不对的话就重来吧 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists 参考文档: https://github.com/spring-projects/spring-framework/blob/master/import-into-idea.md https://github.com/spring-projects/spring-framework/wiki/Build-from-Source https://www.cnblogs.com/bingco/p/12082955.html 来源: https://www.cnblogs

Run a specific TestNG XML test suite with Gradle from command line?

时光总嘲笑我的痴心妄想 提交于 2020-01-31 19:17:46
问题 I am using Gradle with TestNG. I have this build.gradle: useTestNG() { useDefaultListeners = true suites "src/test/resources/tests1.xml" suites "src/test/resources/tests2.xml" } } How can I run for example only tests1.xml from command line? 回答1: you can use project properties to add/change/... different suites. In you example you are probably running gradlew test which run both suites. If you modify test task in your build.gradle def suite1 = project.hasProperty("suite1") def suite2 = project

Run a specific TestNG XML test suite with Gradle from command line?

∥☆過路亽.° 提交于 2020-01-31 19:17:33
问题 I am using Gradle with TestNG. I have this build.gradle: useTestNG() { useDefaultListeners = true suites "src/test/resources/tests1.xml" suites "src/test/resources/tests2.xml" } } How can I run for example only tests1.xml from command line? 回答1: you can use project properties to add/change/... different suites. In you example you are probably running gradlew test which run both suites. If you modify test task in your build.gradle def suite1 = project.hasProperty("suite1") def suite2 = project

“RNCSafeAreaView” was not found in the UIManager

随声附和 提交于 2020-01-31 16:12:12
问题 I try to open a bundle, but when the android is running it shows the next message 2020-01-05 23:15:45.366 26210-26210/com.note.principal W/.note.principa: Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (light greylist, reflection) 2020-01-05 23:15:45.470 26210-26242/com.note.principal E/ReactNativeJS: Invariant Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager. This error is located at: in

“RNCSafeAreaView” was not found in the UIManager

て烟熏妆下的殇ゞ 提交于 2020-01-31 16:12:09
问题 I try to open a bundle, but when the android is running it shows the next message 2020-01-05 23:15:45.366 26210-26210/com.note.principal W/.note.principa: Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (light greylist, reflection) 2020-01-05 23:15:45.470 26210-26242/com.note.principal E/ReactNativeJS: Invariant Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager. This error is located at: in

“RNCSafeAreaView” was not found in the UIManager

女生的网名这么多〃 提交于 2020-01-31 16:11:53
问题 I try to open a bundle, but when the android is running it shows the next message 2020-01-05 23:15:45.366 26210-26210/com.note.principal W/.note.principa: Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (light greylist, reflection) 2020-01-05 23:15:45.470 26210-26242/com.note.principal E/ReactNativeJS: Invariant Violation: requireNativeComponent: "RNCSafeAreaView" was not found in the UIManager. This error is located at: in