Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build with gradle build system #3

Closed
vekexasia opened this issue Jul 8, 2013 · 10 comments
Closed

Cannot build with gradle build system #3

vekexasia opened this issue Jul 8, 2013 · 10 comments

Comments

@vekexasia
Copy link

Hello,

i'm trying to use your library within my project using gradle + your maven group+artifactid.

The first problem I came across is that you're referencing a support library that is different from the "official" one in google repos. This prompts an error

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;

after fixing that by writing the following in my gradle.build:

dependencies {

    compile ('eu.inmite.android.lib:android-styled-dialogs:0.5.7') {
        exclude group: 'com.google.android'
    }

I experienced this other problem below:

Error: duplicate files during packaging of APK /home/abaccega/gitStuff/AppsBuilderProject/AppsBuilder/build/apk/AppsBuilder-ALHHotels-debug-unaligned.apk
    Path in archive: AndroidManifest.xml
@davidvavra
Copy link
Contributor

Can you please try again with the new v1.0? We have done a lot of changes.

@vekexasia
Copy link
Author

Hello @destil , unfortunately it seems 1.0 is not in maven central yet.

Do you know when it will become available?

@davidvavra
Copy link
Contributor

We have already pushed it there, it's a matter of hours.

@davidvavra
Copy link
Contributor

It's available in Maven Central now.

@vekexasia
Copy link
Author

Still:

Error: duplicate files during packaging of APK 
AppsBuilder/build/apk/AppsBuilder-BIT-debug-unaligned.apk
    Path in archive: AndroidManifest.xml
    Origin 1: AppsBuilder/build/libs/AppsBuilder-BIT-debug.ap_
    Origin 2: /home/veke/.gradle/caches/artifacts-24/filestore/eu.inmite.android.lib/android-styled-dialogs/1.0/apklib/9b3fa453eb57c716e12ff520e08fafaf867a8f75/android-styled-dialogs-1.0.apklib
:AppsBuilder:packageBITDebug FAILED

I suggest publishing it as aar . It looks like it's unusable from gradle

@tomas-vondracek
Copy link
Contributor

@vekexasia agreed, we need to add support for gradle build. If you don't want to wait, pull requests are welcomed :-)

@vekexasia
Copy link
Author

Hello tomas, would you mind trying to change the packaging tag of your pom files to "aar" instead of apklib?

That might solve the issue.

Unfortunately I'm very new to maven so I don't have the necessary expertise to even try to fix the problem :(

@tomas-vondracek
Copy link
Contributor

Hi, I can't change packaging type in pom, that would break build for maven users. We need to create new gradle build configuration, it's not about fixing pom. We plan to do that, I just can't tell when we get to it.

@vekexasia
Copy link
Author

@tomas-vondracek For my own library (android-form-edittext) i followed this link. http://www.vandalsoftware.com/post/52468430435/publishing-an-android-library-aar-to-a-maven

It just worked. I hope that will help you out.

@davidvavra
Copy link
Contributor

Thanks to pull request we were able to add Gradle support. Check version 1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants