How to integrate with android klaviyo-android-sdk #133
Replies: 5 comments 6 replies
-
We require a minimum Android SDK of 23 and compile SDK of 34. You shouldn't have to change your target SDK to 34 if you are not prepared to adopt the latest android version right now. |
Beta Was this translation helpful? Give feedback.
-
@evan-masseau Thanks for help me. But you are correct we are not ready to increase target sdk version 34 but we can increase minimum sdk version 23. I have added below gradle dependencies App gradle version :7.0.3 is it possible can you help me with above configuration currently we have to integrate Analytics and push-notification and shopify with above configuration later when we will change with our target sdk version 34 then i will use updated gradle dependencies . it would be very helpful and thanks full if you could provide sample app with above configuration how we can use with our APP . AGPBI: {"kind":"error","text":"Cannot fit requested classes in a single dex file (# methods: 80253 > 65536)","sources":[{}],"tool":"D8"} Thanks |
Beta Was this translation helpful? Give feedback.
-
@evan-masseau Thanks for help i have started worked on it . val event = Event(EventMetric.VIEWED_PRODUCT) NOTE : I am making sure i am using correct public key which i got from kalvio portal setting and profile key . Thanks |
Beta Was this translation helpful? Give feedback.
-
HI @evan-masseau Thanks for helping me again . can you please help me what i am doing wrong |
Beta Was this translation helpful? Give feedback.
-
FYI we are closing all discussion except for announcements in order to streamline the channels we monitor for feedback. If you think you have found bugs, or have a feature request, you can open an issue. If you need general support you can try the klaviyo community or open a support request from your klaviyo account. |
Beta Was this translation helpful? Give feedback.
-
This is my build.grald app level
compileSdkVersion 33
ndkVersion '25.2.9519653'
buildToolsVersion "30.0.3"
}
dependencies {
implementation 'com.github.klaviyo.klaviyo-android-sdk:analytics:2.0.0'
implementation 'com.github.klaviyo.klaviyo-android-sdk:push-fcm:2.0.0'
}
When i add this dependencies i am getting below error :
/Users/cdp/RoveDashCamProject/RoveDashCam/app/src/main/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.github.klaviyo.klaviyo-android-sdk:push-fcm:2.0.0] /Users/cdp/.gradle/caches/transforms-3/4b1ac249c47f543a7e299878335a89d2/transformed/jetified-push-fcm-2.0.0/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 23,
or use tools:overrideLibrary="com.klaviyo.push_fcm" to force usage (may lead to runtime failures)
but when i increase version again lot of error is coming even i increase minSdkVersion 21 to 23 then its telling to increase 34 version but when i increase to 34 then again meta data related error its very hard to increase version 34 . can any one please help me how i can add dependencies API level 33 .
Or can you please provide me one sample example how to integrate analytics and pushnotification sample code with kotlin android code
Thanks
Beta Was this translation helpful? Give feedback.
All reactions