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

Failed to resolve: com.michaelpardo:activeandroid:3.1.0-SNAPSHOT #570

Open
adixitflair opened this issue May 18, 2020 · 35 comments
Open

Failed to resolve: com.michaelpardo:activeandroid:3.1.0-SNAPSHOT #570

adixitflair opened this issue May 18, 2020 · 35 comments

Comments

@adixitflair
Copy link

adixitflair commented May 18, 2020

I'm not able to compile Failed to resolve: com.michaelpardo:activeandroid:3.1.0-SNAPSHOT no repo at this path https://oss.sonatype.org/content/repositories/snapshots/com/michaelpardo/
please let me know how to resolve this issue.

@adixitflair adixitflair changed the title I'm not able to compile Failed to resolve: com.michaelpardo:activeandroid:3.1.0-SNAPSHOT no repo at this path https://oss.sonatype.org/content/repositories/snapshots/com/michaelpardo/ Failed to resolve: com.michaelpardo:activeandroid:3.1.0-SNAPSHOT May 18, 2020
@AlexSuvorov2k
Copy link

AlexSuvorov2k commented May 18, 2020

Same problem.
I have lib of version 3.1.0

@kelebro63
Copy link

Same problem

@Omar20061
Copy link

Same problem.

@naddysears
Copy link

Same problem

2 similar comments
@GuilinSir
Copy link

Same problem

@zobrathemanish
Copy link

Same problem

@peterdk
Copy link

peterdk commented May 18, 2020

For the time being, you can download the jar from @AlexRU18 and add it in the libs folder and then add implementation fileTree(include: ['*.jar'], dir: 'libs').

@AlexSuvorov2k
Copy link

AlexSuvorov2k commented May 18, 2020

.. and then add implementation fileTree(include: ['*.jar'], dir: 'libs').

Yes, this is works, thank you

@JChudasama
Copy link

same problem here

@Suchiq
Copy link

Suchiq commented May 18, 2020

@AlexRU18 can you share Jar file? I'm not finding.

@AlexSuvorov2k
Copy link

@Suchiq #570 (comment)

@KalinRangelovRangelov
Copy link

I have the .jar file in lib and in the app:
Program type already present: com.activeandroid.ActiveAndroid

Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: com.activeandroid.ActiveAndroid

@Suchiq
Copy link

Suchiq commented May 18, 2020

@AlexRU18 Thanks
do I need to add jar file path like
implementation files('libs/activeandroid-3.1.0-SNAPSHOT')
or
implementation fileTree(include: ['*.jar'], dir: 'libs')?

@AlexSuvorov2k
Copy link

AlexSuvorov2k commented May 18, 2020

@KalinRangelovRangelov i think you should clean and rebuild project

@Suchiq I was deleted the existing "implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'" and add "implementation fileTree(include: ['*.jar'], dir: 'libs')"

dont forget put jar into app/libs/

@peterdk
Copy link

peterdk commented May 18, 2020

@AlexRU18 Thanks
do I need to add jar file path like
implementation files('libs/activeandroid-3.1.0-SNAPSHOT')
or
implementation fileTree(include: ['*.jar'], dir: 'libs')?

You need to put the jar directly in the libs folder

@KalinRangelovRangelov
Copy link

@AlexRU18 - Clean/Rebuild or Invalidate Caches and Restart - does not work :(

@krisbot01
Copy link

Since com.michaelpardo:activeandroid:3.1.0-SNAPSHOT has been removed from the maven repo I solved this issue by cloning the project and imported it as a module dependancy. You could also use the .jar file of course but I preferred this work around.

@muktitcc
Copy link

Same problem here.

@Suchiq
Copy link

Suchiq commented May 18, 2020

@peterdk @AlexRU18 Thanks :) That solution solved my problem.

@muktitcc
Copy link

same problem can anyone explain how to solve?

#570 (comment)

Copy this jar, to lib folder and include in app/gradle something like this: implementation files('libs/activeandroid-3.1.0-SNAPSHOT.jar')

comment out //implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'

This solved my problem.

@muktitcc
Copy link

@Suchiq #570 (comment)

Thanks, this solved my problem.

@bjithinb
Copy link

In my project, I am using two modules.These two modules needs active android dependencies, so I copied the jar to module level libs folders. Now I am getting the below build error

Program type already present: com.activeandroid.ActiveAndroid

Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:

Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:

Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete

Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: com.activeandroid.ActiveAndroid

@dikshantrawal
Copy link

I have followed the same instruction and successfully rebuild my project but when I am running my code on-device application was crashing and I have to get this error :
android.database.sqlite.SQLiteException: table virus_scan_time_table has no column named category (code 1 SQLITE_ERROR):
Please help on this error.

@muktitcc
Copy link

implementation files('libs/activeandroid-3.1.0-SNAPSHOT.jar')

where is this activeandroid-3.1.0-SNAPSHOT.jar can you share
location?

https://drive.google.com/file/d/1EfsPM4h9KkApt9qNCZH7W2Hjz0ViXhuj/view

@muktitcc
Copy link

I have followed the same instruction and successfully rebuild my project but when I am running my code on-device application was crashing and I have to get this error :
android.database.sqlite.SQLiteException: table virus_scan_time_table has no column named category (code 1 SQLITE_ERROR):
Please help on this error.

If category is the newly added column, then need to upgrade the version of the database.

@Robertkurniawan98
Copy link

same problem can anyone explain how to solve?

#570 (comment)

Copy this jar, to lib folder and include in app/gradle something like this: implementation files('libs/activeandroid-3.1.0-SNAPSHOT.jar')

comment out //implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'

This solved my problem.

please help, can you tell me where the lib folder sir ? thank youu

@Suchiq
Copy link

Suchiq commented May 18, 2020

same problem can anyone explain how to solve?

#570 (comment)
Copy this jar, to lib folder and include in app/gradle something like this: implementation files('libs/activeandroid-3.1.0-SNAPSHOT.jar')
comment out //implementation 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
This solved my problem.

please help, can you tell me where the lib folder sir ? thank youu

It's inside the app folder.

@dikshantrawal
Copy link

I have followed the same instruction and successfully rebuild my project but when I am running my code on-device application was crashing and I have to get this error :
android.database.sqlite.SQLiteException: table virus_scan_time_table has no column named category (code 1 SQLITE_ERROR):
Please help on this error.

If category is the newly added column, then need to upgrade the version of the database.

I did not add any column. I have just added jar file in the libs folder and after that, I have run my code that time getting this error.

@SatishRavani
Copy link

SatishRavani commented May 18, 2020

step by step solution here

@New-Zero-Zero
Copy link

同样的问题

@yufan956932910
Copy link

yufan956932910 commented May 19, 2020

Download to local reference
直接下载到本地引用
https://n802.com/file/1470701-444074836

@ecr007
Copy link

ecr007 commented May 19, 2020

Please download the official jar: https://github.com/pardom-zz/ActiveAndroid/downloads

Don't Get Hacked

@AlexSuvorov2k
Copy link

AlexSuvorov2k commented May 20, 2020

@ecr007 Don't worry, there and there is a official jar from build application and i was shared it by myself

@agGitHub
Copy link

agGitHub commented Nov 2, 2023

The jar file is no more available. Anybody has a valid link ? Or please upload it again somewhere, for example on Github. Thanks.

@AlexSuvorov2k
Copy link

Anybody has a valid link ?

I updated the link:
#570 (comment)

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