gradle

Is Gradle system property in gradle.properies not being used? (javacpp, intellij)

喜欢而已 提交于 2021-02-10 16:01:39
问题 According to the JavaCPP documentation, if we set the system property: javacpp.platform=linux-x86_64 it should not download the other platforms: This is from javacpp: ... This downloads binaries for all platforms, but to get binaries for only one platform we can set the javacpp.platform system property (via the -D command line option) to something like android-arm, linux-x86_64, macosx-x86_64, windows-x86_64, etc. The way to set system properties in Gradle: Using the -D command-line option,

How to automate Android project skeleton creation? (no Android Studio)

别说谁变了你拦得住时间么 提交于 2021-02-10 14:35:31
问题 I would like to create a regular Android project skeleton (e.g. create directories for all the sources, resources, flavors dimensions, etc; create manifest and xml stubs) I know you can do this in a shell script, but I want to use Gradle, if it is possible at all. Is that functionality built into Gradle, or do I have to write my own extension/plugin. How does Studio create the project skeleton in actuality? I don't want to re-invent the wheel, but I do not want the IDE. 回答1: Is that

gradle with maven submodule

主宰稳场 提交于 2021-02-10 13:16:48
问题 There is any way to build gradle project with maven submodule ? I created a project in gradle but at now I must add module (that module used a maven) I don't have any idea how to used this. There is any good way? I will be very gratefull for any suggestions. 回答1: Either convert the Maven project to Gradle ( gradle init is a good start) and turn the Gradle build into a multi-project build, or publish the Maven build's artifact to the local or a remote Maven repository, and configure the Gradle

Android Studio 0.2.9 unable to create new project

佐手、 提交于 2021-02-10 07:30:58
问题 I'm unable to create new projects in Android Studio after updating to the newest 0.2.9 version. I am using OSX and get the following error message: "Invalid byte 2 of 3-byte UTF-8 sequence." After checking the log, I see the following: 2013-09-17 13:38:29,891 [ 110887] WARN - .project.GradleProjectImporter - com.intellij.openapi.externalSystem.model.ExternalSystemException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.android.tools.idea.gradle.project.ProjectImportErrorHandler

error: cannot find symbol in gradle compileTestJava

回眸只為那壹抹淺笑 提交于 2021-02-10 05:35:28
问题 I am getting lots of error: cannot find symbol errors when the compileTestJava task runs in my Gradle project. My code is in src/main/java and my tests are in src/test/java and the test classes cannot resolve any classes in src/main/java e.g.: C:\q\src\test\java\q\MainTest.java:14: error: cannot find symbol Main.main(new String[0]); ^ symbol: variable Main location: class MainTest But q\src\main\java\q\Main.java exists, compiles and is a public class in the same package. build.gradle: plugins

Gradle changing dependencies by classifier

青春壹個敷衍的年華 提交于 2021-02-10 04:54:46
问题 Hello I got Maven file like so <dependency> <groupId>org.apache.zookeeper</groupId> <artifactId>zookeeper</artifactId> <version>${zookeeper.version}</version> <exclusions> <!-- Dependency on log4j will be removed in subsequent versions see https://issues.apache.org/jira/browse/ZOOKEEPER-850 --> <exclusion> <artifactId>slf4j-log4j12</artifactId> <groupId>org.slf4j</groupId> </exclusion> <exclusion> <artifactId>log4j</artifactId> <groupId>log4j</groupId> </exclusion> </exclusions> </dependency>

Execution failed for task ':app:compileRetrolambdaDebug'

自作多情 提交于 2021-02-09 15:22:51
问题 I use retrolambda a long time, but suddenly he stopped working in all my projects. I reinstalled jdk, but it didn't help. I didn't find answer in google, i hope you can help me. My gradle files: build.gradle (app): apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' android { compileSdkVersion 25 buildToolsVersion "25.0.1" defaultConfig { applicationId "xsystem.ru.test" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release {

Execution failed for task ':app:compileRetrolambdaDebug'

我是研究僧i 提交于 2021-02-09 15:22:29
问题 I use retrolambda a long time, but suddenly he stopped working in all my projects. I reinstalled jdk, but it didn't help. I didn't find answer in google, i hope you can help me. My gradle files: build.gradle (app): apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' android { compileSdkVersion 25 buildToolsVersion "25.0.1" defaultConfig { applicationId "xsystem.ru.test" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release {

Android开发基础

自闭症网瘾萝莉.ら 提交于 2021-02-09 13:32:05
Android开发基础 开发基础包括 ① Android开发环境搭建 Android Studio的安装 https://developer.android.google.cn/studio/ SDK的下载和配置 两种方法, 方法1 拷贝别人的SDK文件夹中的所有内容,放在与AndroidStudio在同级目录方法2 根据Android Studio的向导去下载和安装 模拟器的安装与配置 方法1 拷贝别人的SDK文件夹中的所有内容,放在与AndroidStudio在同级目录 方法2 在Android Studio中找到 AVD Manager,根据向导去下载和创建 方法3 使用第三方的模拟器,也选择android 4.4版本,比如夜神模拟器3.8(不要用最新的) 注意事项 在下载安装完android studio和sdk之后,创建工程时还会下载gradle工具,用于编译构建 目录是:C:\Users\自己的用户名.gradle 如果创建工程还有问题,一般做一个小更新就可以。 ② Android HelloWorld Android HelloWorld 工程的创建,工程中每一部分的介绍创建工程界面 创建完项目之后,产生的文件 清单文件 ③ Android 界面开发知识 无形组件:布局的定义与常用属性设置 有形组件:按钮、文件控件、编辑文本、图片控件的定义与常用属性设置 指定ID

Manifest Merger Error when using Dynamic Features and Build Flavors

自作多情 提交于 2021-02-09 10:13:58
问题 With dynamic-feature-modules it is possible to define in the AndroidManifest.xml wheter a module should come preinstalled: <dist:module ... dist:onDemand="false" dist:title="@string/title_shop"> .... </dist:module> or not: <dist:module ... dist:onDemand="true" dist:title="@string/title_shop"> .... </dist:module> I have two build flavors in my project. The module should be preinstalled in one flavor but not in the other. The idea is to have this default AndroidManifest.xml in the main source