Closed l0drex closed 2 years ago
Are you sure you only have the new version in classpath not the new and a older version?
The member CONNECTIONS in DBusConnection was private in the older versions and is now package visible (because the builder needs access to it and is in the same package). So if the member would still be private, the library would not compile.
No, I checked the version and deleted all build and cache directories, the error is still there. I am using this with Kotlin and Gradle, could that be the problem?
This should not be an issue, but I'm not using kotlin or gradle. Can you reproduce this in a sample project and upload so I can have a look?
So I created the example, but I can't reproduce it there. I guess Gradle indeed did mess up the versions somewhere, I just don't know why.
I upgraded to version
4.1.0
and saw thatDBusConnection.getConnection(DBusConnection.DBusBusType.SESSION)
was deprecated, so I replace it with the Builder as suggested in the docs:But now I get the following errors:
Is this a bug, or do I use the Builder wrong?