ActiveAndroid icon indicating copy to clipboard operation
ActiveAndroid copied to clipboard

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

Open adixitflair opened this issue 5 years ago • 35 comments

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 avatar May 18 '20 08:05 adixitflair

Same problem. I have lib of version 3.1.0

AlexSuvorov2k avatar May 18 '20 08:05 AlexSuvorov2k

Same problem

kelebro63 avatar May 18 '20 08:05 kelebro63

Same problem.

Omar20061 avatar May 18 '20 08:05 Omar20061

Same problem

naddysears avatar May 18 '20 08:05 naddysears

Same problem

GuilinSir avatar May 18 '20 09:05 GuilinSir

Same problem

zobrathemanish avatar May 18 '20 09:05 zobrathemanish

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').

peterdk avatar May 18 '20 09:05 peterdk

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

Yes, this is works, thank you

AlexSuvorov2k avatar May 18 '20 09:05 AlexSuvorov2k

same problem here

JChudasama avatar May 18 '20 10:05 JChudasama

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

Suchiq avatar May 18 '20 10:05 Suchiq

@Suchiq https://github.com/pardom-zz/ActiveAndroid/issues/570#issuecomment-630023582

AlexSuvorov2k avatar May 18 '20 10:05 AlexSuvorov2k

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

KalinRangelovRangelov avatar May 18 '20 10:05 KalinRangelovRangelov

@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')?

Suchiq avatar May 18 '20 10:05 Suchiq

@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/

AlexSuvorov2k avatar May 18 '20 10:05 AlexSuvorov2k

@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

peterdk avatar May 18 '20 10:05 peterdk

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

KalinRangelovRangelov avatar May 18 '20 10:05 KalinRangelovRangelov

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.

krisbot01 avatar May 18 '20 10:05 krisbot01

Same problem here.

muktitcc avatar May 18 '20 10:05 muktitcc

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

Suchiq avatar May 18 '20 10:05 Suchiq

same problem can anyone explain how to solve?

https://github.com/pardom-zz/ActiveAndroid/issues/570#issuecomment-630023582

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 avatar May 18 '20 10:05 muktitcc

@Suchiq #570 (comment)

Thanks, this solved my problem.

muktitcc avatar May 18 '20 10:05 muktitcc

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

bjithinb avatar May 18 '20 10:05 bjithinb

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.

dikshantrawal avatar May 18 '20 10:05 dikshantrawal

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 avatar May 18 '20 10:05 muktitcc

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.

muktitcc avatar May 18 '20 11:05 muktitcc

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

Robertkurniawan98 avatar May 18 '20 11:05 Robertkurniawan98

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.

Suchiq avatar May 18 '20 11:05 Suchiq

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.

dikshantrawal avatar May 18 '20 11:05 dikshantrawal

step by step solution here

SatishRavani avatar May 18 '20 11:05 SatishRavani

同样的问题

New-Zero-Zero avatar May 18 '20 12:05 New-Zero-Zero

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

yufan956932910 avatar May 19 '20 08:05 yufan956932910

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

Don't Get Hacked

ecr007 avatar May 19 '20 21:05 ecr007

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

AlexSuvorov2k avatar May 20 '20 06:05 AlexSuvorov2k