realm-java: Error Build : 'these types will not undergo annotation processing'

i got this error when trying to build project with realm :

Note: Start processing for 0 annotations on 0 elements
Note: Time measurements: [Whole Processing = 0 ms], 
Note: Finish processing
warning: Unclosed files for the types '[io.realm.CartItemRealmProxy]'; these types will not undergo annotation processing

File that generated by realm seems not processed.

I use android annotation and JDK 1.7 Android Studio 1.1 Beta 4

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

Can also happen if you forget to use RealmList<> in place of List<> 🙈

@Zhuinden It solved. After I switched to the gradle 3.0, I changed the compile to implementation and etc, but there were some common dependencies which used on the other project’s module too.

I had to repeat them on that build.gradle too, or use api instead of implementation. ✨

Oh I seem to be blind,

    private List<CustomizedValues> customizedValuesList = new ArrayList<>();
    private LinkedHashMap<String, String> color_attributes = new LinkedHashMap<>();
	// And other String variables.......

These field types (linked HashMap, list that is not RealmList) are not supported in RealmObjects unless they are explicitly ignored.

@csdodd I know, I commented to the person above you from 2016, because Date was not the problem 😃

It is due to certain data types not supported in realm. You need to create a realm version of it. I suspect it is the “Date”.