android,noclassdeffounderror,android-library
I think your activity EZImageActivity is declared in liberary manifest.Actual case androidManifest.xml merging is supported in version 20 of the ADT tools. Enable with the manifestmerger.enabled property. more details...
android,maven,android-studio,android-gradle,android-library
You have a couple different options. One option is to maintain your libraries as separate projects and compile them to an archive format, such as JAR or AAR; JAR files are for pure Java libraries, and AAR is for Android libraries (which contain code that accesses Android APIs and/or has...
android,android-resources,android-drawable,android-library
Finally figured it out! Both the Build folders of my application as well as the library must have been corrupt or missing as replacing it with backups of this folder fixed all the problems, I am guessing r - the generated file must have been defected.
android,static-libraries,android-library
.so are Shared Objects are linked during the runtime. If there are any changes in your .so you dont need to recompile. source .jar are Java Arhive files -fundamental archive files, built on the ZIP file format. They can contain anything:classes,images,text Wikipedia...
android,ios,windows-phone,javascript-library,android-library
Apache Cordova may be your answer, you can check it here : https://cordova.apache.org/
android,maven,gradle,android-library
This is the solution that worked for me in the end: publishing { publications { sdk(MavenPublication) { artifactId libName artifact "${project.buildDir}/outputs/aar/${libName}-${project.version}.aar" //The publication doesn't know about our dependencies, so we have to manually add them to the pom pom.withXml { // for dependencies and exclusions def dependenciesNode = asNode().appendNode('dependencies') configurations.compile.allDependencies.each...
android,android-studio,android-library,aar
In android studio File -- >Project Structure --> select module -- > select "dependencies" Tab...
android,android-layout,android-activity,android-library
after i tried a lot to fix this problem i figured out that the library res will not compile with project which i don't understand but i just merged all library projects together in new project (like copy all resource value drawable style and everything related). now its work like...
android,android-activity,android-library
Cleaning and re-launching Eclipse made the job.
android,android-gradle,build.gradle,android-library
If you're developing a library, there isn't really a top-level build.gradle: that top level applies to all modules in a multimodule project, but a library is best implemented as a standalone single module. Probably the best practice would be to have a single build.gradle file for your library module, and...
android,gradle,dependencies,android-library
how can I streamline this process so that my application automatically uses the library's most recently generated .aar file? Option #1: Dedicated Library Step #1: Put your app project and the library project as children of a common root directory for the overall project. For the purposes of this...
android,android-studio,google-glass,android-library
To import library into Android Studio: select File > Import, and then select the directory containing the project to import. a wizard will open and guide you through the rest of the import process. When the project import has finished, it will open up a file called "import-summary.txt" which lists...
android,design,menu,contextmenu,android-library
You can use the PopupWindow which starts from API level 1. In PopupWindow you can actually design something with XML Layout file. You can include anything (TextView,Button,ImageView,...) Like : PopUp Window XML : <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="15dp" android:background="#89000000" android:orientation="vertical"> <Button android:id="@+id/idClose"...
android,android-studio,android-library
You are right, there is no option to create a library project using the initial wizard. The way I do it is to create an app module (using the wizard) and then add Android Library module using File -> New Module. Most of the time I end up keeping the...
android,android-wifi,android-library
Updated: You will want to use sendBroadcast() in your library to send an intent to your app when your library detects a successful P2P connection. You will probably want to receive the intent in your app only if there is an Activity currently open. See new code below: See that...
android,gradle,android-library,bintray
Can I change this "path" somehow? Does it matter? Yes and yes. This path changed, as soon as I used the group variable: group = "my.awesome.group" This solves the second Question as well. The path of the uploaded file is then: $BINTRAYUSERNAME/$REPONAME/$PACKAGENAME/$GROUPPATH/$VERSION/*.aar I recommend using for Android libraries the...
android,android-library,circularreveal
On the Github page of the repository: This library is not released in Maven Central, but instead you can use JitPack. Add remote maven url: repositories { maven { url "https://jitpack.io" } } Might it be possible you forget to add this to your gradle file?...
android,android-view,android-library
Always a good idea to have a look at the source code for your open source library :). Code is here (I am assuming you're using the latest version): https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/library/src/com/nostra13/universalimageloader/core/ImageLoaderConfiguration.java The line in question: 195 public Builder(Context context) { 196 this.context = context.getApplicationContext(); 197 } This means the context is...
android,git,module,android-studio,android-library
I tried and I just add a line compile 'com.rengwuxian.materialedittext:library:1.7.1' to in the app folder build.gradle, such that dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.2' compile 'com.rengwuxian.materialedittext:library:1.7.1' } Sync the gradle. Then, just use com.rengwuxian.materialedittext.MaterialEditText instead of EditText in your layout xml, such that: <com.rengwuxian.materialedittext.MaterialEditText android:layout_width="match_parent"...
android,ant,proguard,android-library
I still don't know why the referenced libraries are included in the obfuscated jar, but the simple solution to correct the problems related to this was to open the obfuscated jar with winrar and delete the classes that I didn't want to be there...
android,eclipse,android-library
OK finally i find problem. i copy all library in my project Drive(hardware location) and add Libraries again. clean project and rebuild it. it work!...
android,gradle,android-gradle,android-library
Is this still not possible? Correct, at least through the standard build tools. It's possible there are third-party plugins, scripts, or other recipes to create a "fat AAR" out of an AAR and its dependencies. I would assume that splitting up your code into multiple modules is not bad...
android,module,android-studio,android-library
Three options I know of: You can specify the path to the external library: Android studio add external project to build.gradle Include the compiled jar file from the library in the libs directory of the N apps. Publish the artifact (the jar from library project) to a gradle repository and...
In addition to CommonsWear's answer, which is correct if you are using Android Studio, what you require can also be achieved in Eclipse - albeit with a little more work. You'd need to create a 'library application' (see image below) which should be your base application - i.e the app...
android,adt,proguard,android-library
You can obfuscate your library, but you need to add all your public API as exceptions so Proguard won't touch it. It's a lot of work. Be prepared to test a lot. Also, if you obfuscate your library, you'll usually want to either obfuscate its dependencies too, or add those...
android,android-manifest,android-library
You can chose exactly one of the two apps as your main app. You can't have both because Java does not support diamond inheritance.
maven,intellij-idea,android-library,robospice
Read about the setup of RS in the wiki pages, you will see that some extensions need some exclusions on Android. This is not related to RoboSpice per say but depends on the libraries themselves (for instance XMLParser depends on stax and xp3 that must be excluded on Android).
android,android-studio,android-gradle,android-library
Based on this info: ApplicationId in Library Projects You cannot use applicationId to customize the package of a library project. The package name has to be fixed in library projects (and specified as packageName in the manifest). The Gradle plugin did not enforce this restriction earlier. Removing applicationId variable from...
You should have a look at jitpack.io. I haven't personally used it but seems to do exactly what you are looking for as it will compile the project and host it on their maven repo for you.
android,google-maps,android-mapview,android-maps-v2,android-library
Where is this google play service integration? <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyfd" /> key ...
android,android-studio,gradle,android-library
Turns out I needed a .aar file not a .jar file for android library dependency. The .aar file is a zip file which contains everything you need for your android library.
android,android-library,unsatisfiedlinkerror
This turned out to be caused by having another version of the app installed on the phone in /system/priv-app. Removing that one prevented the crash.
android,android-studio,android-library,pagerslidingtabstrip
Go to : File > Project Structure > in modules App go to 'dependencies' tab > click on '+' go for 1 'Library Dependency' > search for 'com.astuetz:pagerslidingtabstrip:1.0.1' without quotes > ok
android,gradle,android-gradle,android-library
Lots of this is answered in this tutorial. How does this work? Gradle imports the libraries from a Maven repository. The Maven repository can contain both regular .jar files and regular .aar files. Where does the library come from? By default, new versions of Android Studio import from JCenter. JCenter...
android,android-gradle,android-library
Replace your gradle with this apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "21.1.2" defaultConfig { applicationId "your_package_name" minSdkVersion 14 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/NOTICE' exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENCE' } } dependencies...
android,android-layout,android-xml,android-library
You need to use width as 0dip instead of wrap_content if you use weight property. <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="horizontal" android:paddingBottom="15sp" android:weightSum="2"> <com.beardedhen.androidbootstrap.BootstrapButton android:id="@+id/OK" style="@style/AppBaseTheme" android:layout_width="0dip" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_margin="5dp"...
android,c++,swig,android-library
Please note that there's a naming convention. Your lib needs to be called libexample.so . LoadLibrary("example") will look for libexample.so. The .so library needs to be inside the apk under the lib folder (since you are developing for Android, it needs to be under the lib/armeabi and lib/armeabi-v7a folders -...
java,android,eclipse,android-fragments,android-library
Thank you all. The problem was very Trivial, I had not marked the library as a library project. I did that, and added it to my own project's build path, and it works.
android,google-maps,google-maps-android-api-2,android-library
The API keys are bound to the package name of the application and the certificate used to sign it (you can use the same key for multiple applications, of course, but you must register each one individually in the Developer Console). As far as I know, there is no option...
android,gradle,android-library,android-tv,leanback
The issue was coming from Mixpanel library, Mixpanel define its AndroidManifest with this tag : <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="21" tools:ignore="GradleOverrides" /> So I end up giving up on Mixpanel, I prefer give up on them than 10% of our users....
Duplicate files are not allowed when packaging an APK (unless they need to be merged, but that's another story). In your case both jars contain META-INF/LICENSE.txt file, so Gradle complains about that. exclude 'META-INF/LICENSE.txt' tells Gradle to exclude this file from packaging process. Since this is just a text with...
android,android-studio,android-library
I had the same issue. But I have solved it. Go File > Invalidate Caches / Restart... > Click at Invalidate and Restart It's an efficient way. You can try. Source: Android Studio - Auto complete and other features not working Note: Here are some other approaches too. Have a...
android,android-library,applicationcontext
You will generally have to add Context parameter to your library API, to init function for example, and pass a Context from the application that uses it. However, there is a hackish workaround (single-line, to highlight that it's an ugly hack): if (Runtime.getRuntime().exec(new String[]{"/system/bin/sh","-c","cd /data/data/jackpal.androidterm"}).waitFor() == 0) { Log.d("!!!", "Android...
Remove this part from your library's AndroidManifest: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> ...
android,android-gradle,android-library
Instead of adding it in the Configurations. I added the exclude for only the library like this. compile ('com.rengwuxian.materialedittext:library:1.7.1') { exclude group: 'com.nineoldandroids', module: 'library' } ...
Add android-support-v7-palette.jar to your project and add it to build path.
android,android-studio,android-library,aar
Solved it from this post, down at the bottom where it talks about external libraries. Essentially, when referencing AAR elements in code you do so using the package specified in the AAR's manifest, but when referencing AAR elements in XML you cite the namespace of the project (not the AAR)....
android,android-studio,android-library
Any android library needs to have an AndroidManifest.xml file, but a name or an icon is not required. It's only needed when there is an activity that is MAIN and LAUNCHER. You simply could use this manifest and your library will work like a charm. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"...
android,eclipse,android-studio,android-library
Maybe this will be helpful for others. Gradle is doing manifest merge for library projects as well. So issue was to keep AndroidManifes.xml unchanged from library. It had application node for demo purposes and this node was successfully merged to main AndroidManifest.xml. I'm going to submit issue to Google since...
android,exception,android-library
You're missing at least one dependency (backport-util-concurrent) I recommend using gradle or maven to fix your dependency tree and save you the time to search for such errors in the future. A proper dependency management software can save you hours if you are willing to use it and makes your...
android,jar,android-library,android-package-managers
Make a new project with particular package and mark it as a library project and just build project and a jar for will be generated in your bin folder.
android,gradle,android-studio,android-library,showcaseview
I recently just added ShowcaseView to an Android Studio project, and I hope this can push you in the correct direction. My file structure looks something like this: project app build.gradle libraries showcase build.gradle settings.gradle Add the files from the library folder of ShowcaseView to the showcase directory in the...
android,ibeacon,android-library,region,android-ibeacon
You should construct a RegionBootstrap only once. If you want to alter the monitored regions by adding new ones, just do so directly on BeaconManager like this: beaconManager.startMonitoringBeaconsInRegion(new Region("myMonitoringUniqueId", null, null, null)); ...
Yes. Wherever you see android.support.v4 as part of the package, that class works back to API Level 4.
change this line android:showAsAction="ifRoom" to app:showAsAction="ifRoom" And Clean Build your Project.You are done.Hope it will help.Thanks...
android,android-studio,android-library,build.gradle
I solved this problem when I deleted my library and added it again.
android,android-library,floating-action-button,android-design-library
No, it is not included (yet) on the official support library. You have to use a 3rd party library for FloatingActionButtons There are many, this one is the most popular: https://github.com/makovkastar/FloatingActionButton...
android,git,android-library,picasso,square
Following up from my comments in your question, if you want to use picasso with your changes, what you'll need to do is clone picasso, make your changes to the source, then run a Maven package task, if you have Maven: mvn clean package -Dmaven.test.skip=true If the build is successful,...
android,robotium,android-library
I think the object Solo can't be access in the scope "compile". You can use the following dependency in replacement: dependencies { compile 'com.jayway.android.robotium:robotium-solo:5.3.1' } Enjoy :)...
android,android-imageview,android-gradle,android-library,renderscript
You have to delete the lib because it might be doubled
android,android-intent,android-library
I found a solution myself: When I wanted to pass the context to constructor of email class I used getApplicationContext() and when I changed it to this it worked.
android,gradle,dependencies,recyclerview,android-library
Rebuilt the project and clean it
android,android-support-library,android-library
Yes, you duplicate the dependencies. If you execute gradle dependencies in project directory you will see that the support libraries are doubled. To prevent from such ocurrence you have several options: Decide whether you really need the support libraries in your Android library. Once you make the positive decision you...
android,android-gradle,android-library
Step #1: Clone the repo, download the ZIP archive, or otherwise get the repo contents onto your hard drive Step #2: Move the library directory from your copy of the repo into your project, renamed to something more distinctive (e.g., discreteSeekBar) Step #3: Modify the settings.gradle in your project to...
android,eclipse,permissions,calendar,android-library
You Can write your own provider - like this (Dirty code - but should works) CalendarProviderLocal.java public class CalendarProviderLocal { private static final String DATABASE_NAME = "Calendar"; private static final String EVENTS_TABLE = "events"; private static final int DATABASE_VERSION = 4; public static final String EVENT = "event"; public static...
android,maven,gradle,android-library,artifactory
I was able to fix my issue. I found my solution here and here. My original gradle.build script was fine for publishing jar files; however, when building an android library for use with other projects you typically want a .aar file, not a .jar file. In order to have Artifactory...