android-gradle

Publish jar library to bintray using gradle

百般思念 提交于 2019-11-29 12:13:23
I'm trying to publish a jar library to bintray using Gradle. I have a package on my project which is "com.github.instagram". What I am trying to achieve is to build the jar file of this package and upload it to bintray. here are my configurations uploadArchives { repositories { bintrayMavenDeployer { username 'xxx' apiKey 'xxx' repoOwner 'xxx' repoName 'xxx' packageName 'xxx' description 'This is an example to simplifying bintray publishing' descUrl 'https://github.com/ysb33r/Gradle/blob/master/bintray/README.md' tags 'gradle','bintray' } } } but when i execute gradlew uploadArchives, it

Android Studio project can't resolve ActionBarSherlock imports

半世苍凉 提交于 2019-11-29 12:04:56
I have an Android Studio project which has a dependency on ActionBarSherlock set in build.gradle : dependencies { compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar' compile project(':Core') compile fileTree(dir: 'libs', include: '*.jar') } The project builds successfully on the command line with gradle assemble assembleDebug and also builds and runs just fine from the IDE when I press ctrl + D . When I view some of the Sherlock-related source files in the IDE, though, the file is full of red error notifications, starting with this line: import com.actionbarsherlock.app

DexFile in 2.0 versions of Android Studio and Gradle

孤街醉人 提交于 2019-11-29 11:20:36
I am using the following code to instantiate all the classes included in a certain package. DexFile df = new DexFile(getPackageCodePath()); for (Enumeration<String> iter = df.entries(); iter.hasMoreElements(); ) { String className = iter.nextElement(); if (className.contains(packageName) && !className.contains("$")) { myClasses.add(Class.forName(className).newInstance()); } } Unfortunately it is not working properly anymore. Since Android Studio 2 and Gradle 2.0.0, the DexFile entries no longer include all the classes within the app but only the classes belonging to the com.android.tools

Android Studio building errors using react native app

喜你入骨 提交于 2019-11-29 11:20:22
I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building like: Using incompatible plugins for the annotation processing Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android

android studio error Error:Connection timed out

一曲冷凌霜 提交于 2019-11-29 11:13:46
I just create a new Project in the android studio and add gcm module to it. and I keep giving this error message Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle. and I do not use any proxy. can anyone help me about this? Update now after rebuild my project i give this error Error:A problem occurred configuring project ':app'. A problem occurred configuring project ':backend'. Could not resolve all dependencies for configuration ':backend:classpath'. Could not resolve com.google.appengine:gradle-appengine-plugin:1

.gradle retains multiple copies of Gradle distributions

∥☆過路亽.° 提交于 2019-11-29 11:10:05
I'm using the Gradle wrapper to build various projects and noticed that my .gradle directory now contains multiple copies of each Gradle distribution. Each copy is in a unique subdirectory as shown: This has happened with every version of Gradle that I have under .gradle , up through gradle-2.2.1-all . Why do these copies exist and how are they selected by the Gradle wrapper? The only evidence I've found is the Gradle documentation for distributionUrl : The wrapper downloads a certain distribution only once and caches it. These subdirectories may be a hash computed from the distributionUrl in

How to generate javadoc for android library when it has dependencies which are also aar libraries?

戏子无情 提交于 2019-11-29 10:54:44
I have android library project which depends on other android library projects. I need to generate javadoc for library but it fails because gradle puts to javadoc classpath path to .aar locations but javadoc expects .jar files. simplified gradle file: android { compileSdkVersion 23 buildToolsVersion "23.0.2" configurations { javadocDeps } defaultConfig { minSdkVersion 7 targetSdkVersion 23 versionCode 1 versionName "0.1.0" } } dependencies { compile 'com.android.support:support-v4:23.2.0' compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.nineoldandroids:library:2.4.0' compile 'com

Android Studio - 'Cannot resolve symbol' syntax highlighting errors although build is ok

丶灬走出姿态 提交于 2019-11-29 10:43:53
I have a really annoying problem since several days, after I tried to restore a previously working Android Studio project from a backup, after getting a new computer. I have the "cannot resolve symbol" syntax highlighting problem with the classes from Android libraries such as android.support.v7.app , android.support.v4.app , and Google Play Services, which I have included as dependencies. But, the project builds fine and I can run the App on phone with no problems. I have verified whether these jar files exist under SDK installation - for e.g. "\sdk\extras\android\m2repository\com\android

Android NoClassDefFoundError: com.google.firebase.FirebaseOptions

﹥>﹥吖頭↗ 提交于 2019-11-29 10:23:43
When i run my codes Adroid studio gives that error my gradle file like under below and Android Studio v2.2 gradle is 'com.android.tools.build:gradle:2.2.0-alpha1' apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" packagingOptions { exclude 'META-INF/DEPENDENCIES' } defaultConfig { applicationId "com.asd.asd" minSdkVersion 14 targetSdkVersion 23 versionCode 9 versionName "1.3.4" multiDexEnabled true } buildTypes { release { debuggable false minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } }

android studio 3.0 Canary 1 : project refresh failed

戏子无情 提交于 2019-11-29 10:14:45
I tried to load my project in this new Android Studio 3.0 Canary 1 . It was running perfectly in my previous Android Studio Version 2.4 preview 7 This is the error I am facing: Error:Could not resolve all dependencies for configuration ':sample:devCompileClasspath'. Project :sample declares a dependency from configuration 'devCompile' to configuration 'dev' which is not declared in the descriptor for project :library. My gradle configs are as below: Project Level Build Gradle: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha1'