pardom-zz / ActiveAndroid

Active record style SQLite persistence for Android
http://www.activeandroid.com
4.7k stars 1.03k forks source link

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

Open adixitflair opened 4 years ago

adixitflair commented 4 years ago

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.

AlexSuvorov2k commented 4 years ago

Same problem. I have lib of version 3.1.0

kelebro63 commented 4 years ago

Same problem

Omar20061 commented 4 years ago

Same problem.

naddysears commented 4 years ago

Same problem

GuilinSir commented 4 years ago

Same problem

zobrathemanish commented 4 years ago

Same problem

peterdk commented 4 years ago

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 commented 4 years ago

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

Yes, this is works, thank you

JChudasama commented 4 years ago

same problem here

Suchiq commented 4 years ago

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

AlexSuvorov2k commented 4 years ago

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

KalinRangelovRangelov commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

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

krisbot01 commented 4 years ago

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 commented 4 years ago

Same problem here.

Suchiq commented 4 years ago

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

muktitcc commented 4 years ago

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 commented 4 years ago

@Suchiq #570 (comment)

Thanks, this solved my problem.

bjithinb commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

step by step solution here

New-Zero-Zero commented 4 years ago

同样的问题

yufan956932910 commented 4 years ago

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

ecr007 commented 4 years ago

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

Don't Get Hacked

AlexSuvorov2k commented 4 years ago

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

agGitHub commented 10 months ago

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

AlexSuvorov2k commented 10 months ago

Anybody has a valid link ?

I updated the link: https://github.com/pardom-zz/ActiveAndroid/issues/570#issuecomment-630023582