android-library

Android Studio Gradle project refresh failed:Configuration with name 'default' not found

浪子不回头ぞ 提交于 2020-01-01 19:49:49
问题 I want to import library wheel to my project. What I have done: 1. I imported library wheel to Android Studio in order to have build.gradle in it. 2. I created new folder in my project called libraries and put wheel library to it. 3. I put this code to my settings.gradle: include ':app:libraries:wheel' 4. I put this code to build.gradle: compile project('libraries:wheel'); 5. I tried to sync gradle but it failed That's how my project's structure looks like: my build.gradle here: apply plugin:

How to use a library project with both c and java apis on Android

爱⌒轻易说出口 提交于 2020-01-01 07:03:20
问题 I have asked this question in google android-ndk group but not get any answer. I am trying to build a common module in a independent project by click the "Is Library" is eclipse. This project provides both c apis and java apis. While some of these apis are related. ( it means it's not a good idea to separate them into 2 projects) Let's name it common and libcommon.so. When I am using this library in another project ( suppose testcommon), I add the common project as a library in eclipse at

Jars added to an Android library are not getting referenced in the project

不打扰是莪最后的温柔 提交于 2019-12-30 09:54:12
问题 I have created an Android library where I included some external jars. These jars are seen in "Referenced Libraries" under the library project. When I reference this library in my other project, it is not able to link the jars that had been added to library. It shows errors to the referenced library under the project. It should have linked the jars which are added in library, rather, it shows an error in the project in which I have added this library. Can anyone help me figure this out? 回答1:

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

故事扮演 提交于 2019-12-29 07:45:08
问题 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'

Unable to instantiate activity… Caused by ClassNotFoundException

吃可爱长大的小学妹 提交于 2019-12-29 06:53:13
问题 After converting a perfectly working application to a library (including its Activity class!), I am trying to create an application that uses that entire library by simply superclassing the library's activity: package com.example.baseapp.paid; import android.os.Bundle; import com.example.baseapp.LibActivity; public class PaidActivity extends LibActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

For android library projects, is <uses-sdk> meaningful in manifest?

只谈情不闲聊 提交于 2019-12-28 05:51:03
问题 It's all pretty much in the title. Although I see <uses-sdk> specified in all the example library project's AndroidManifest.xml I've seen, I have a feeling it's irrelevant. In fact, I suspect that <uses-permission> is also irrelevant, as are all of the attributes of <manifest> , other than package . Can anyone confirm? 回答1: As of ADT r20 preview 3 Library manifests can be merged with the main application manifest. This is enabled in an ant build by specifying the property manifestmerger

library with bundles dependencies (fat aar)

怎甘沉沦 提交于 2019-12-28 03:47:45
问题 We build a library that we distribute to our customers. We distribute the raw aar files for them to use. Also we use the raw access API of GitHub to provide a Maven repository. Now to keep things tidy, we split up the library into several modules: include ':library' include ':geohash' include ':networkstate' include ':okvolley' include ':volley' library is an Android library, so are volley and okvolley and networkstate . Now when I publish library , the dependency tree looks like this: \---

library with bundles dependencies (fat aar)

非 Y 不嫁゛ 提交于 2019-12-28 03:47:04
问题 We build a library that we distribute to our customers. We distribute the raw aar files for them to use. Also we use the raw access API of GitHub to provide a Maven repository. Now to keep things tidy, we split up the library into several modules: include ':library' include ':geohash' include ':networkstate' include ':okvolley' include ':volley' library is an Android library, so are volley and okvolley and networkstate . Now when I publish library , the dependency tree looks like this: \---

Transitive dependencies not resolved for aar library using gradle

a 夏天 提交于 2019-12-27 11:12:04
问题 I have investigated a while and probably saw most popular answers here related to aar and transitive dependencies but somehow it is still not clear for me how to make this working. So: I have android library with given gradle config: apply plugin: 'android-library' apply plugin: 'android-maven' version = "1.0.0" group = "com.somepackage" buildscript { repositories { mavenCentral() mavenLocal() } dependencies { classpath 'com.github.dcendents:android-maven-plugin:1.0' } } android {

Transitive dependencies not resolved for aar library using gradle

北战南征 提交于 2019-12-27 11:11:08
问题 I have investigated a while and probably saw most popular answers here related to aar and transitive dependencies but somehow it is still not clear for me how to make this working. So: I have android library with given gradle config: apply plugin: 'android-library' apply plugin: 'android-maven' version = "1.0.0" group = "com.somepackage" buildscript { repositories { mavenCentral() mavenLocal() } dependencies { classpath 'com.github.dcendents:android-maven-plugin:1.0' } } android {