Android SDK question - Using the latest MobileCore library on Android I get IDE warnings about Identity | Community
Skip to main content
New Participant
November 4, 2022
Solved

Android SDK question - Using the latest MobileCore library on Android I get IDE warnings about Identity

  • November 4, 2022
  • 3 replies
  • 1813 views
import com.adobe.marketing.mobile.Identity 

generates an IDE warning


But

Identity.registerExtension() 

still compiles despite the IDE warning of "Unresolved reference" show also there.

I have updated the libraries to the latest versions supplied here, but the results are the same:

const val adobeAnalyticsVersion             = "1.2.10"
const val adobeCoreVersion = "1.11.4"
const val userProfileVersion = "1.1.0"

(I suspect the demo code is expired?)

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by FabioMatt

Hello, 

I'm having the same issue as Radu. 

Compiling with the following configuration:

implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.6"
implementation "com.adobe.marketing.mobile:mobileservices:1.1.5"
implementation "com.adobe.marketing.mobile:analytics:1.2.10"
implementation "com.adobe.marketing.mobile:userprofile:1.1.0"
implementation "com.adobe.marketing.mobile:core:1.11.4"

results in some warnings on Identity, Lifecycle, Signal. Plus, the IDE marks those classes in red as if they were not defined anywhere. 

 

Switching to this configuration

implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.6"
implementation "com.adobe.marketing.mobile:mobileservices:1.1.5"
implementation "com.adobe.marketing.mobile:analytics:1.2.10"
implementation "com.adobe.marketing.mobile:userprofile:1.1.0"
implementation "com.adobe.marketing.mobile:core:1.11.4" <-- changing from sdk-core to core -->

results in a series compile errors on the very same classes. 

Do you have any idea on how to solve it?

 

 

 

3 replies

New Participant
November 22, 2022

Analytics 1.2.10

Core 1.7.0

Lifecycle 1.0.3

UserProf 1.1.0

Identity 1.2.0

Signal 1.0.3

 

This works for me

FabioMattAccepted solution
New Participant
November 21, 2022

Hello, 

I'm having the same issue as Radu. 

Compiling with the following configuration:

implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.6"
implementation "com.adobe.marketing.mobile:mobileservices:1.1.5"
implementation "com.adobe.marketing.mobile:analytics:1.2.10"
implementation "com.adobe.marketing.mobile:userprofile:1.1.0"
implementation "com.adobe.marketing.mobile:core:1.11.4"

results in some warnings on Identity, Lifecycle, Signal. Plus, the IDE marks those classes in red as if they were not defined anywhere. 

 

Switching to this configuration

implementation "com.salesforce.marketingcloud:marketingcloudsdk:8.0.6"
implementation "com.adobe.marketing.mobile:mobileservices:1.1.5"
implementation "com.adobe.marketing.mobile:analytics:1.2.10"
implementation "com.adobe.marketing.mobile:userprofile:1.1.0"
implementation "com.adobe.marketing.mobile:core:1.11.4" <-- changing from sdk-core to core -->

results in a series compile errors on the very same classes. 

Do you have any idea on how to solve it?

 

 

 

VaniBhemarasetty
Employee
November 4, 2022

@radusavutiu This requires an in-depth investigation into why you are getting the warnings or errors. Please reach out to client care for additional help