Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1
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?)

 

1 Accepted Solution

Avatar

Correct answer by
Level 1

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?

 

 

 

View solution in original post

3 Replies

Avatar

Employee Advisor

@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

Avatar

Correct answer by
Level 1

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?

 

 

 

Avatar

Level 1

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