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

not present in maven central #12

Closed
ghost opened this issue Nov 20, 2014 · 12 comments
Closed

not present in maven central #12

ghost opened this issue Nov 20, 2014 · 12 comments

Comments

@ghost
Copy link

ghost commented Nov 20, 2014

Is it possible to upload them in maven central please?

@ljbade
Copy link

ljbade commented Nov 21, 2014

Yeah I support this too.

@chtiboss2 looks like someone else uploaded their version to http://search.maven.org/#search%7Cga%7C1%7Candroid-gesture-detectors

@AndroidDeveloperLB
Copy link

How should it be in the "build.gradle" file then?

@agap
Copy link

agap commented Apr 5, 2015

@AndroidDeveloperLB
compile 'com.ryanharter.android-gesture-detectors:library:0.0.1'

@devemux86
Copy link

@agap Is it actually the same?

I tried 0.0.4 and it crashed on some gestures (I haven't kept the exceptions).

@AndroidDeveloperLB
Copy link

@agap Doesn't work. It says :

Error:(26, 13) Failed to resolve: com.ryanharter.android-gesture-detectors:library:0.0.1
Show in File
Show in Project Structure dialog

@agap
Copy link

agap commented Apr 5, 2015

@AndroidDeveloperLB make sure that
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
and
mavenCentral()
both are in your repositories' list.

@AndroidDeveloperLB
Copy link

@agap I'm not sure where exactly should I put those.
Is it somewhere here:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

?

@agap
Copy link

agap commented Apr 5, 2015

@AndroidDeveloperLB that's the content of the top-level build file; you should have build.gradle file inside your application/library module. in this build file find a top-level closure called repositories (or create one if it doesn't exist) and make sure it looks like this:

repositories {
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

You can have other repos here, just make sure you included sonatype. After that you can try to build again.
Note: and I was wrong, looks like 0.0.1 isn't the latest version. :)

@AndroidDeveloperLB
Copy link

@agap So which is the correct version?
I've tried adding those lines to the "android" part, but now I get this error:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

and if I got up a few lines, I see this:

Error:(5, 5) Attribute application@icon value=(@drawable/ic_launcher) from AndroidManifest.xml:5:5
Error:(6, 5) Attribute application@theme value=(@style/AppTheme) from AndroidManifest.xml:6:5

As if there was a collision of resources that it couldn't handle...
Am I correct?

Would it help if I tell you which project I'm trying this on?
If so, here it is:
https://github.com/AndroidDeveloperLB/MultiTouchPlaceholderView

@sengsational
Copy link

The com.ryanharter 0.0.4 (https://mvnrepository.com/artifact/com.ryanharter.android-gesture-detectors/library/0.0.4) is NOT the same code as the code here; it bombs with NPE on touch events.

There are only 5 classes, so you can just do a text copy / paste and you'll know what you're getting, as opposed to accepting some random code in your project.

@rharter
Copy link
Collaborator

rharter commented Mar 27, 2017

I second what @sengsational says. This old builds were based on this, but I don't maintain them anymore. We recently got some new management on this project so I'd recommend using the code here.

@Almeros
Copy link
Owner

Almeros commented Dec 12, 2017

I updated the project to make use of Jitpack.io. Please see the README.md for more information. I hope this is working for you all. Now closing this issue.

@Almeros Almeros closed this as completed Dec 12, 2017
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

7 participants