forcedotcom / SalesforceMobileSDK-Android

Android SDK for Salesforce
Other
341 stars 388 forks source link

CipherMode couldn't be resolved in Debug Build Variant #2598

Open adriduttaheb opened 4 months ago

adriduttaheb commented 4 months ago

Please fill out the following details:

  1. Version of Mobile SDK Used: 12.0.1
  2. Issue found in Native App or Hybrid App: Native App
  3. OS Version: Any
  4. Device: Any
  5. Steps to reproduce: Add SalesforceMobileSDK-Android as a submodule and try to build on debug build variant
  6. Actual behavior: Compilation Error
  7. Expected Behavior: No Compilation Error
  8. Error Log: e: file:/StudioProjects//SalesforceMobileSDK-Android/libs/SalesforceSDK/src/com/salesforce/androidsdk/push/PushService.kt:249:53 Unresolved reference: CipherMode

Hi, I'm getting a weird build error where the kotlin debug compiler can't resolve CipherMode. It works great in the release build variant. I currently fixed this by extracting CipherMode out of the Encryptor class into it's own class. Just wanted to see if this could be fixed in the next release or if someone in salesforce is also experiencing this.

johnjeremih commented 4 months ago

I was having the same problem as well. I cannot find a solution.

wmathurin commented 1 month ago

Could you try with Mobile SDK 12.2 ? What version of Android Studio are you using?