realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Attempt to recreate a file for type io.realm.PACKAGE_OBJECTRealmProxy #7602

Open jorrdane opened 2 years ago

jorrdane commented 2 years ago

Great, I'll issume this issue is fixed then. Closing.

hello again! one more related problem appeared on Gradle 7.3-rc-5/ 7.3-bin:

same error:

error: Attempt to recreate a file for type io.realm.com_PACKAGE_OBJECTRealmProxy
public class OBJECT extends RealmObject {
       ^

Appears if I add an svg in Drawable through Add Vector Asset or if I add new file in drawable (selector for example). Make Project -> Run doesn't help anymore. Have to Clean Project -> Rebuild.

Originally posted by @jorrdane in https://github.com/realm/realm-java/issues/7562#issuecomment-976326598

Also appears sometimes if I edit something in xml (added dimensions)

clementetb commented 2 years ago

We are about to release version 10.9.0, would you mind validating on it once it gets published?

jorrdane commented 2 years ago

yeah, sure

jorrdane commented 2 years ago

hello! realm 10.9.0 -> added dimensions -> same error

rorbech commented 2 years ago

Seems to be reproducible on our "Intro Example"

jorrdane commented 2 years ago

Seems to be reproducible on our "Intro Example"

in previous thread one of your developers could reproduce this somehow

76105 commented 2 years ago

I have changed the app icon from vector asset and its showing this error !! What should I do

jorrdane commented 2 years ago

@76105 Haven't seen your reply. I think you've already resolved it but if no: Clean Project - Rebuild.