android-library

Android Studio Create AAR using another AAR file and jar inside

二次信任 提交于 2019-12-21 01:20:11
问题 I am creating AAR file using another aar and jar file dependency. I have successfully created the .aar release file. Then, I have imported my new AAR file into the sample Project. the project is running fine. when going to access that aar and jar classes mean, It's showing NoClassDefFound error. Note: First I want to know, as of now AAR inside another AAR is possible or not. can anyone help me to come out from this new things issue? I referred to this link also Create an AAR with multiple

'Unresolved reference' errors for android library module referenced in app module

跟風遠走 提交于 2019-12-20 16:30:16
问题 I have problems referencing my android library modules in my projects. Beside the main app module I use to have an android library module with either util stuff or as data module. I reference it in app module like that: dependencies { implementation project(":data") } When I build the project, it´s giving me lot of error messages 'Unresolved reference: ...' for all stuff that I reference in the app module to the android library module. But the IDE itself doesn´t have a problem, Intelligent

'Unresolved reference' errors for android library module referenced in app module

雨燕双飞 提交于 2019-12-20 16:29:31
问题 I have problems referencing my android library modules in my projects. Beside the main app module I use to have an android library module with either util stuff or as data module. I reference it in app module like that: dependencies { implementation project(":data") } When I build the project, it´s giving me lot of error messages 'Unresolved reference: ...' for all stuff that I reference in the app module to the android library module. But the IDE itself doesn´t have a problem, Intelligent

how to import your own github forked library into android studio

跟風遠走 提交于 2019-12-20 12:36:55
问题 I found a nice open library on GitHub, I imported it into my Android Studio project using Gradle dependencies, but then I realized I need to make little modifications on it. So I forked the library on my GitHub, done the modifications and asked for a pull request, but I can't wait until they approve and merge my modifications with the original code. Is there a way to use dependencies to import my forked library (in my Github) into my Android Studio project, rather than the original library?

Unexpected Top-Level Exception after SDK Update

爷,独闯天下 提交于 2019-12-20 06:24:13
问题 I'm working on an Android Project which has an Android Library Project in his Build Path. Both projects have the AdWhirl SDK library in their libs folder and Build Path. Now since updating android sdk tools to r15 the ant build of the main project fails on following exception: [dx] UNEXPECTED TOP-LEVEL EXCEPTION: [dx] java.lang.IllegalArgumentException: already added: Lcom/adwhirl/AdWhirlLayout$AdWhirlInterface; [dx] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)

Java Library in an Android library referenced by an Android Project throws NoClassDefFound

余生颓废 提交于 2019-12-20 02:56:08
问题 I have an Android library project (written by me and I have the sources) which I use in my Android project - so far so good and no problems. But in that library project I am referencing a foreign .jar file (the SDK for the Bixolon Mobile Printer) and it builds fine and I can reference the SDK's method in my code. However at runtime I get this: 02-16 09:44:43.620: W/dalvikvm(25402): VFY: unable to resolve virtual method 2433: Lcom/bixolon/android/library/BxlService;.GetStatus ()I 02-16 09:44

Unable to execute dex: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener;

妖精的绣舞 提交于 2019-12-19 06:01:22
问题 I am repeatedly getting error while building the apk. Have done the basic things like cleaning, updating and restarting the eclipse but still its not getting resolved. Here is error log. com.android.dx.util.DexException: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550) at com.android.dx.merge.DexMerger.mergeClassDefs

What can I use instead of Context Menu in android? [closed]

99封情书 提交于 2019-12-19 04:58:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I want to show some options when clicking a button. I use context menu now. But the context menu showing below Android 3 is not good with the current app design. I want to either change the style of the context menu or use some other controls or replace the context menu with something else. What can I do to make

“trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option.” when building Android project

我们两清 提交于 2019-12-19 02:28:13
问题 I hit this error and found no hits for the error message, so I thought I'd share the solution I came up with to save anyone else facing the problem repeating my work. When writing a new Android library (apklib) for use in a (large) application, I'm getting the following error during dexing when I add my new project as a dependency: trouble writing output: Too many field references: 70185; max is 65536. You may try using --multi-dex option. References by package: <...long list of packages with

Re-use code Android NDK

孤人 提交于 2019-12-18 17:58:42
问题 I found a lot of tutorials showing how to start developing Android Applications using NDK. But I have a rather "easy/stupid" question: Please consider the following two tutorials: http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/ http://www.indiedb.com/tutorials/creating-compiling-and-deploying-native-projects-from-the-android-ndk http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ http://marakana.com/forums/android/examples/49.html Now, in the second tutorial