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

Could not find com.qozix:tileview:3.0.1 #507

Closed
felipeplets opened this issue Apr 22, 2019 · 10 comments
Closed

Could not find com.qozix:tileview:3.0.1 #507

felipeplets opened this issue Apr 22, 2019 · 10 comments

Comments

@felipeplets
Copy link

I've just updated my Android Studio to the version 3.4 and I always fail to find the TileView lib. I've tested with versions 3.0.1 and 2.2.7 and the error is the same.

The stack trace:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalTargetRelease'.
> Could not resolve all task dependencies for configuration ':app:targetReleaseRuntimeClasspath'.
   > Could not find com.qozix:tileview:3.0.1.
     Searched in the following locations:
       - https://maven.google.com/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://maven.google.com/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://jitpack.io/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://jitpack.io/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://github.com/WickeDev/stetho-realm/raw/master/maven-repo/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://github.com/WickeDev/stetho-realm/raw/master/maven-repo/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://dl.google.com/dl/android/maven2/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://dl.google.com/dl/android/maven2/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://jcenter.bintray.com/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://jcenter.bintray.com/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://github.com/uPhyca/stetho-realm/raw/master/maven-repo/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://github.com/uPhyca/stetho-realm/raw/master/maven-repo/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
       - https://repo.maven.apache.org/maven2/com/qozix/tileview/3.0.1/tileview-3.0.1.pom
       - https://repo.maven.apache.org/maven2/com/qozix/tileview/3.0.1/tileview-3.0.1.jar
     Required by:
         project :app

Trying to find it in the new project manager it only find old versions, and even adding these ones the same error is raised.
Screen Shot 2019-04-22 at 2 25 58 AM

Any idea about how to solve this issue?

@moagrius
Copy link
Owner

moagrius commented Apr 22, 2019 via email

@huahouzwift
Copy link

Could you please bring it back up? I have to publish it to my mavenLocal() to build it now.

@felipeplets
Copy link
Author

@moagrius thank you for your answer!

Is there a workaround to make it work locally?
I really need to deliver a new version of my app today.

@huahouzwift
Copy link

huahouzwift commented Apr 23, 2019

To publish to mavenLocal(), follow these steps:

clone the tileview project, then in the tileview/build.gradle, add these lines:

apply plugin: 'maven'
...
group = 'com.qozix'
version = '2.2.7'

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: mavenLocal().getUrl())
        }
    }
}

Then on command line, run:
gradlew uploadArchives
This will publish the library to maven local ~/.m2/repository/

Then in your own project (the root build.gradle), add mavenLocal() like this:

allprojects {
    repositories {
        maven { url "http://dl.bintray.com/populov/maven" }
        google()
        jcenter()
        maven { url "https://jitpack.io" }
        mavenLocal()
    }
}

Credit to:
https://android.jlelse.eu/local-maven-repository-and-libraries-updated-story-7585f1563fb2
https://stackoverflow.com/questions/28361416/gradle-how-to-publish-a-android-library-to-local-repository

@moagrius
Copy link
Owner

yeah you can bring the project into your own project as a module, and import it that way.

or you can probably just use the maven url:

repositories {
    maven {
        url  "https://dl.bintray.com/moagrius/maven" 
    }
}

you can also just grab the tileview-release.aar from the demo and then import that to your project.

i'm still waiting to hear back from bintray, unfortunately - a lot of things got borked and there's not much i can do about it at the moment - i definitely am working on what i can though (e.g., trying to move it to a new repo)

sorry for the hassle, and thanks for your patience

@felipeplets
Copy link
Author

Thanks @moagrius and @huahouzwift for helping.
@moagrius $h*t happens 😀 please let me know if I can be of any help.

@moagrius
Copy link
Owner

Ha thanks!

@Amattia
Copy link

Amattia commented Apr 24, 2019

Hi, news about this problem ?

@moagrius
Copy link
Owner

moagrius commented Apr 24, 2019 via email

@moagrius
Copy link
Owner

This should be updated. Everything from 2.x to 3.0.1 should resolve from jcenter now.

Note that some really old versions 1.0.x still need to be migrated.

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

No branches or pull requests

4 participants