forcedotcom / SalesforceMobileSDK-Android

Android SDK for Salesforce
Other
341 stars 388 forks source link

attempting to assign weaker access privileges; was public SupportSQLiteDatabase 11.1.0 #2505

Closed johnjeremih closed 10 months ago

johnjeremih commented 10 months ago

Please fill out the following details:

  1. Version of Mobile SDK Used: com.salesforce.mobilesdk:MobileSync:11.1.0
  2. Issue found in Native App or Hybrid App: Navive
  3. OS Version: 26
  4. Device: Samsung
  5. Steps to reproduce: I updated the SDK version from 10.1.1 to 11.1.0.
  6. Actual behavior:
  7. Expected Behavior:
  8. Error Log: I don't understand why is conflicting with the database class. image
johnjeremih commented 10 months ago

@brandonpage here is the link to an example app. I need some help with this. https://drive.google.com/file/d/1mc6LEVfAgASe9qciGcUU74FaoxTQw9KI/view?usp=sharing

brandonpage commented 10 months ago

Sorry, I don't feel comfortable downloading that.

We don't use SupportSQLiteDatabase so I don't really have any knowledge here. Have you tried anything like this? https://youtrack.jetbrains.com/issue/KT-50041/Attempting-to-assign-weaker-access-privileges-protected-was-public

johnjeremih commented 10 months ago

@brandonpage Ok problem. here is the repository for it. https://github.com/johnjeremih/SalesforceErrorTestApp. The error happens when you have a database class and you are in Salesforce SDK 11.1.0.

This is a new project and only has room and Salesforce on it. Also before 10.2.0, the error doesn't happen.

johnjeremih commented 10 months ago

I found out the problem. It is the androidx.room:room-rxjava2 that collides with the new version of the Salesforce SDK.