Gradle stop build task when click any gradle task on Android Studio 2.2.3.
There's no error on screen or any error message
What I'm doing wrong ?
Some additional data
Android Studio 2.2.3
Gradle 'com.android.tools.build:gradle:2.2.3'
Gradle top level build file
buildscript {
repositories {
jcenter()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
allprojects{
repositories {
jcenter()
jcenter()
}
}
This is my build.gradle file.
def final myapplicationId = "com.package.myapp"
def final versionnameapp = "1"
def final versioncodeapp = 1
allprojects {
repositories {
// mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'http://clinker.47deg.com/nexus/content/groups/public' }
}
}
apply plugin: 'com.android.application'
configurations {
compile.exclude group: 'javax.inject', module: 'javax.inject'
}
android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
buildToolsVersion "23.0.2"
compileOptions {
encoding "UTF-8"
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError false
}
dexOptions {
jumboMode true
}
signingConfigs {
release {
keyAlias 'chess'
keyPassword 'android'
storeFile file('/keystore/sam.keystore')
storePassword 'android'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/ASL2.0'
}
defaultConfig {
targetSdkVersion 23
renderscriptTargetApi 19
renderscriptSupportModeEnabled false
multiDexEnabled true
minSdkVersion 14
applicationId = myapplicationId
}
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
defaultConfig {
debuggable true
versionName = versionnameapp + "-DEBUG"
}
}
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = []
}
dx.additionalParameters += '--multi-dex'
// dx.additionalParameters += "--main-dex- list=$projectDir/multidex.keep".toString()
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':reportes')
compile project(':locationlib')
compile 'com.android.support:percent:23.3.0'
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
compile 'joda-time:joda-time:2.3'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.amlcurran.showcaseview:library:5.0.0'
compile 'ch.acra:acra:4.5.0'
compile 'com.pnikosis:materialish-progress:1.7'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.github.panwrona:DownloadProgressBar:1.1'
compile 'org.jsoup:jsoup:1.8.3'
compile 'com.cleveroad:slidingtutorial:0.9.5'
}
Thanks in advance
Execute gradlew assemble from the command-line. There you will get the error that you are missing.
Related
I had success generating protobuf code to java using java-lite, problem is that I need plain 'java'
Project level:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Module level:
plugins {
id 'com.android.application'
id "com.google.protobuf" version "0.8.13"
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.maartin.myapplication"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets.main.java.filter.exclude 'META-INF/**/*'
packagingOptions {
exclude 'META-INF/**/*'
}
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.3'
implementation "androidx.appcompat:appcompat:1.2.0"
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "androidx.datastore:datastore-core:1.0.0-alpha02"
implementation "com.google.protobuf:protobuf-javalite:3.13.0"
}
sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
srcDir 'src/main/proto'
}
}
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.10.0'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite'
}
}
}
}
}
Code on top is working flawlessly, but generates javalite version. How can I generate simple java?
What I tried:
Project level: stays the same
Module level:
plugins {
id 'com.android.application'
id "com.google.protobuf" version "0.8.13"
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.maartin.myapplication"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
pickFirst "META-INF/io.netty.versions.properties"
pickFirst "META-INF/INDEX.LIST"
exclude 'META-INF/*'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/INDEX.LIST'
exclude 'META-INF/native-image/io.netty/transport/native-image.properties'
exclude 'META-INF/native-image/io.netty/codec-http2/native-image.properties'
exclude 'META-INF/native-image/io.netty/codec-http2/*'
exclude 'META-INF/native-image/io.netty/codec-http2/*'
exclude 'META-INF/native-image/io.netty/buffer/native-image.properties'
exclude 'META-INF/native-image/io.netty/handler/native-image.properties'
exclude 'META-INF/native-image/io.netty/*'
exclude 'META-INF/native-image/io.netty/common/native-image.properties'
exclude 'META-INF/native-image/io.netty/transport/reflection-config.json'
exclude 'META-INF/native-image/io.netty/codec-http/native-image.properties'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude("META-INF/*.kotlin_module")
}
sourceSets.main.java.filter.exclude 'META-INF/**/*'
packagingOptions {
exclude 'META-INF/**/*'
}
}
dependencies {
implementation 'com.android.support.constraint:constraint-layout:2.0.3'
implementation "androidx.appcompat:appcompat:1.2.0"
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation "androidx.datastore:datastore-core:1.0.0-alpha02"
implementation group: 'com.google.protobuf', name: 'protobuf-java', version: '3.12.0'
implementation group: 'io.grpc', name: 'grpc-all', version: '1.29.0'
}
sourceSets {
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
srcDir 'src/main/proto'
}
}
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.11.0'
}
plugins {
grpc {
artifact = 'io.grpc:protoc-gen-grpc-java:1.29.0'
}
}
generateProtoTasks {
all()*.plugins {
grpc {
outputSubDir = 'java'
}
}
}
}
With new approach - I do not run into errors, but build/generated/source/proto has only debug folder (java files are not generated)
I suspect the following part is problematic.
grpc {
outputSubDir = 'java'
}
It overrides the output directory name for the grpc plugin to java. However, 'java' directory is the default directory for the java builtin. The consequence of this is that the generated gRPC service code overwrites the generated Java message code. Can you try changing it to something else or just leave it for default?
AndroidManifest.xml Error: Package name
'android.support.graphics.drawable' used in:
com.android.support:animated-vector-drawable:28.0.0,
com.android.support:support-vector-drawable:28.0.0
https://imgur.com/6aFUN59
https://imgur.com/C1EmnJ3
An error happened after upgrade Android Studio 3.4
Already try change compileSdk to 27 / 27.1.1 but still same
and already try to disable "vector-drawable" lib but still same
.
.
.
.
.
.
.
.
buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://maven.fabric.io/public'}
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.26.1'
classpath 'com.google.firebase:firebase-plugins:1.2.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.firebase-perf'
android {
compileSdkVersion 28
defaultConfig {
applicationId "xxx.packacge.name"
minSdkVersion 21
targetSdkVersion 28
versionCode 4
versionName "Dev"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
applicationVariants.all { variant ->
//variant.getAssembleProvider()
variant.outputs.all {
outputFileName = "${variant.name}-${variant.versionName}.apk"
}
}
buildTypes {
release {
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
buildToolsVersion = '28.0.3'
}
repositories {
mavenCentral()
jcenter()
maven { url 'https://maven.google.com' }
}
dependencies {
configurations.all {
exclude group: 'com.android.support', module: 'support-v13'
}
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:animated-vector-drawable:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.0-alpha5'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:support-fragment:28.0.0'
}
apply plugin: 'com.google.gms.google-services'
..
buildscript {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://maven.fabric.io/public'
}
maven {
url 'https://maven.google.com/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.firebase:firebase-plugins:1.2.0'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
mavenCentral()
maven {
url 'https://maven.google.com/'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
..
You should try this way
implementation('com.android.support:support-vector-drawable:28.0.0') {
exclude group: 'android.support.graphics.drawable'
exclude module: 'support-vector-drawable'
}
implementation('com.android.support:support-vector-drawable:28.0.0') {
exclude group: 'android.support.graphics.drawable'
exclude module: 'support-vector-drawable'
}
try this one
I am building an Android app and I keep getting this error...
/code bases/2016/app/src/main/java/com/app/apps/android/appt/object/Route.java:3: error: package com.google.android.maps does not exist
import com.google.android.maps.GeoPoint;
Android studio is red on the maps part...
import com.google.android.maps.GeoPoint;
This is my full Gradle file...
buildscript {
repositories {
jcenter();
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.google.gms:google-services:1.3.0-beta1'
classpath 'com.android.tools.build:gradle:1.5.0'
// The Fabric Gradle plugin uses an open ended version to react
// quickly to Android tooling updates
classpath 'io.fabric.tools:gradle:1.21.5'
//classpath 'io.fabric.tools:gradle:2.1.2'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 23
buildToolsVersion '24.0.0'
dexOptions {
//maxProcessCount 2
incremental true
javaMaxHeapSize "2g"
}
signingConfigs {
config {
keyAlias 'myApp'
keyPassword '2012'
storeFile file('/myApp')
storePassword '2012'
}
}
defaultConfig {
applicationId "com.myApp.apps.android.maint"
minSdkVersion 23
targetSdkVersion 23
versionCode 21
versionName '3.51'
signingConfig signingConfigs.config
}
buildTypes {
debug {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
debuggable false
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
}
productFlavors {
//releaseDev {}
//releaseIOSTest {}
releaseTest {}
releaseLive {}
}
}
repositories {
jcenter();
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('com.crashlytics.sdk.android:crashlytics:2.5.2#aar') {
transitive = true;
}
compile 'com.google.android.gms:play-services-gcm:9.0.2'
compile 'com.google.android.gms:play-services-location:9.0.2'
compile 'com.google.android.gms:play-services-maps:9.0.2'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.android.support:recyclerview-v7:24.0.0'
compile 'com.google.code.gson:gson:2.4'
compile 'joda-time:joda-time:2.9.2'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.0'
compile 'com.google.maps:google-maps-services:0.1.15'
compile 'com.google.android:android:4.1.1.4'
}
apply plugin: 'com.google.gms.google-services'
You should upgrade your google repository library, and change the following code:
classpath 'com.google.gms:google-services:1.3.0-beta1'
to
classpath 'com.google.gms:google-services:3.0.0'
And:
compile 'com.google.maps:google-maps-services:0.1.15'
to
compile 'com.google.android.gms:play-services-maps:9.0.2'
Read more here https://developers.google.com/android/guides/setup
I'm trying to put my finger in android functional testing. Making a first easy Application test case as the following :
public class ApplicationTest extends ApplicationTestCase<App> {
private App myApp;
public ApplicationTest() {
super(App.class);
}
protected void setUp() throws Exception {
super.setUp();
createApplication();
myApp = getApplication();
}
public void testCorrectVersion() throws Exception {
PackageInfo info = myApp.getPackageManager().getPackageInfo(myApp.getPackageName(), 0);
assertNotNull(info);
MoreAsserts.assertMatchesRegex("\\d\\.\\d", info.versionName);
}
}
I just run it with left click and then click on green arrow "Run
Application"
I selected "Debug" variant
And the test Artifact "Android Instrumental Test"
I have "Geny Motion", and want to run the test with it.
Gradle sync well
=> but I run the test case, I get the following error at the end :
:app:transformClassesWithMultidexlistForDebugAndroidTest FAILED
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebugAndroidTest'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Here is my app gradle file :
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
signingConfigs {
release {
if (System.getenv()["CI"]) { // CI=true is exported by Greenhouse
storeFile file(System.getenv()["GH_KEYSTORE_PATH"])
storePassword System.getenv()["GH_KEYSTORE_PASSWORD"]
keyAlias System.getenv()["GH_KEY_ALIAS"]
keyPassword System.getenv()["GH_KEY_PASSWORD"]
} else {
release
}
}
}
compileSdkVersion ANDROID_BUILD_SDK_VERSION
buildToolsVersion ANDROID_BUILD_TOOLS_VERSION
defaultConfig {
applicationId "fr.millezimsolutions.app.millezimu"
targetSdkVersion ANDROID_BUILD_TARGET_SDK_VERSION
minSdkVersion ANDROID_BUILD_MIN_SDK_VERSION
versionCode ANDROID_BUILD_VERSION_CODE
versionName ANDROID_BUILD_APP_VERSION_NAME
multiDexEnabled true
}
buildTypes {
release {
debuggable false
renderscriptOptimLevel 3
signingConfig android.signingConfigs.release
zipAlignEnabled true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro', 'proguard-rules-new.pro'
}
debug {
debuggable true
renderscriptOptimLevel 3
applicationIdSuffix ".debug"
versionNameSuffix "debug"
}
}
configurations{
all*.exclude group: 'cglib'
all*.exclude group: 'commons-collections'
}
dexOptions {
incremental false
preDexLibraries = false
jumboMode = true
javaMaxHeapSize "4g"
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/INDEX.LIST'
exclude 'LICENSE.txt'
exclude 'NOTICE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/license.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
useLibrary 'org.apache.http.legacy'
configurations.all {
resolutionStrategy.force 'com.google.code.gson:gson:2.5'
resolutionStrategy.force 'com.google.guava:guava:19.0'
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
// SUPPORT
compile 'com.android.support:appcompat-v7:23.1.1'
// WORKERS
compile 'de.greenrobot:eventbus:2.4.1'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
// SOCIAL NETWORK
compile 'org.twitter4j:twitter4j-core:4.0.4'
compile 'com.facebook.android:facebook-android-sdk:4.8.2'
// TEST
//testCompile 'org.robolectric:robolectric:3.0'
//testCompile "org.robolectric:robolectric:3.0"
testCompile 'junit:junit:4.+'
androidTestCompile 'junit:junit:4.+'
androidTestCompile 'io.appium:java-client:3.3.0'
androidTestCompile 'org.apache.commons:commons-lang3:3.4'
androidTestCompile 'com.google.code.gson:gson:2.5'
// Set this dependency if you want to use the Hamcrest matcher library
testCompile 'org.hamcrest:hamcrest-library:1.3'
// MULTIDEX
compile 'com.android.support:multidex:1.0.1'
// VIEW
compile 'com.android.support:design:23.1.1'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'me.relex:circleindicator:1.1.7#aar'
compile 'com.lsjwzh:recyclerviewpager:1.0.8'
compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.11'
compile('com.afollestad.material-dialogs:core:0.8.5.3#aar') {
transitive = true
}
compile project(':MaterialWidget')
compile project(':MultiHeaderRecyclerView')
compile 'com.android.support:cardview-v7:23.1.1'
compile 'me.zhanghai.android.materialprogressbar:library:1.1.4'
// TEXT
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
compile 'com.github.bluejamesbond:textjustify-android:2.1.1'
// FIREBASE
compile 'com.firebaseui:firebase-ui:0.3.0'
compile 'com.firebase:geofire:1.1.1'
compile('com.firebase:firebase-client-android:2.5.0') {
exclude module: 'httpclient'
}
// UTILS
compile 'com.google.code.gson:gson:2.5'
// compile 'me.dm7.barcodescanner:zbar:1.6.3'
compile('com.google.http-client:google-http-client-jackson:1.21.0') {
exclude module: 'xpp3'
exclude group: 'stax'
}
compile 'org.apache.commons:commons-lang3:3.4'
// OAUTH
compile 'com.google.oauth-client:google-oauth-client-java6:1.21.0'
// TIME
compile 'joda-time:joda-time:2.9.1'
compile 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
// AMAZON WS
compile 'com.amazonaws:aws-android-sdk-core:2.2.9'
compile 'com.amazonaws:aws-android-sdk-cognito:2.2.9'
compile 'com.amazonaws:aws-android-sdk-s3:2.2.9'
// GOOGLE
compile 'com.google.android.gms:play-services:8.3.0'
// RATING STORE
compile project(':AppRate')
// DEBUG
compile 'com.github.brianPlummer:tinydancer:0.0.9'
compile 'com.splunk.mint:mint:4.4.0'
compile 'com.google.android.gms:play-services-analytics:8.3.0'
// debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1'
// releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
compile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1'
}
if (!System.getenv()["CI"]) {
// Routine pour acceder aux clés de signature
def Properties props = new Properties()
def propFile = file('../../signing.properties')
if (propFile.canRead()) {
props.load(new FileInputStream(propFile))
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
} else {
android.buildTypes.release.signingConfig = null
}
} else {
android.buildTypes.release.signingConfig = null
}
}
println(getVersion().toString())
}
And here is the project gradle file :
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:1.5.0-beta2'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.11.3'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
maven {
url "https://jitpack.io"
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
url "https://mint.splunk.com/gradle/"
}
}
}
ext {
ANDROID_BUILD_MIN_SDK_VERSION = 16
ANDROID_BUILD_TARGET_SDK_VERSION = 23
ANDROID_BUILD_TOOLS_VERSION = "23.0.1"
ANDROID_BUILD_SDK_VERSION = 23
ANDROID_BUILD_VERSION_CODE = getAppVersionCode()
ANDROID_BUILD_APP_VERSION_NAME = getAppUVersionName()
ANDROID_DEFAULT_BUILD_VERSION_CODE = "24"
ANDROID_DEFAULT_BUILD_APP_VERSION_NAME = 0.4
}
apply plugin: 'com.github.ben-manes.versions'
I'look around for a while, but very difficult to see what it could be.
Error:Execution failed for task ':app:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_51\bin\java.exe'' finished with non-zero exit value 1
hello i get this error, which i have no idea how to fix.
these are my gradles:
app gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc2"
defaultConfig {
applicationId "com.example.daniel.testing6"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(path: ':backend', configuration: 'android-endpoints')
//configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.google.android.gms:play-services:8.1.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:design:22.2.1'
}
backend gradle:
// If you would like more information on the gradle-appengine-plugin please refer to the github page
// https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18'
compile 'com.google.appengine:appengine-endpoints:1.9.18'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.18'
compile 'javax.servlet:servlet-api:2.5'
compile 'com.googlecode.objectify:objectify:4.0b3'
compile 'com.ganyo:gcm-server:1.0.2'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
}
project gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
does any one know how to fix it???