Manually adding aar with dependency pom/iml file

1. Publishing In your aar project, add maven-publish plugin and add necessary plugin configuration. apply plugin: ‘com.android.library’ apply plugin: ‘maven-publish’ … dependencies { testCompile ‘junit:junit:4.12’ compile ‘com.android.support:appcompat-v7:23.1.1’ compile ‘com.novoda:bintray-release:0.2.7’ } … publishing { publications { maven(MavenPublication) { groupId ‘com.example’ //You can either define these here or get them from project conf elsewhere artifactId ‘example’ version … Read more

Android with Gradle (Java finished with non-zero exit value 2)

I think you should change your java JDK change jvm v8 for jdk7. This link can help you: Is it possible to use Java 8 for Android development? Other possible issue its dependency error, clean gradle before build. And change your jackson library for this: compile ‘com.fasterxml.jackson.core:jackson-databind:2.2.+’ compile ‘com.fasterxml.jackson.core:jackson-core:2.2.+’ compile ‘com.fasterxml.jackson.core:jackson-annotations:2.2.+’

How to add ojdbc7 to Java web app by Gradle?

Gradle currently can’t handle the redirects needed by the realm-based SSO mechanism used by Oracle’s maven repo. A workaround is to use this URL instead url “https://www.oracle.com/content/secure/maven/content” In addition, you need to supply credentials for authentication. Here’s a minimal example: plugins { id ‘java’ } repositories { jcenter() maven { url “https://www.oracle.com/content/secure/maven/content” credentials { username=”<Oracle … Read more