Troubleshooting

App crashes when capturing snapshot (hardware bitmap)

Section titled App crashes when capturing snapshot (hardware bitmap)

While capturing a snapshot you may experience a crash in some situations:

E/AndroidRuntime: FATAL EXCEPTION: main
[...]
java.lang.IllegalArgumentException: Software rendering doesn't support hardware bitmaps

If you use Hardware bitmap, or your image library use hardware bitmap by default (example: coil), the default snapshot method does not support it. To overcome the issue, you can enable the Static snapshot method which supports Hardware bitmaps.

In order for Contentsquare to work, you need to make sure the following endpoints are not blocked by your network (VPN):

RequestEndpoint
Detail
Config filehttps://mobile-production.content-square.netSee Configuration
Analytics data (EU)https://m.csqtrk.net
https://m.ba.contentsquare.net
https://m.aa.contentsquare.net
See Sending data
Analytics data (US)https://m-aus1.contentsquare.net
https://m.bf.contentsquare.net
https://m.af.contentsquare.net
See Sending data
 Monitoringhttps://l.contentsquare.netUsed by the SDK to
send SDK monitoring analysis
in JSON format over HTTPS.
Session Replay data (EU)https://ka-aeu1.contentsquare.net
https://ka.ba.contentsquare.net
https://ka.aa.contentsquare.net
See Session Replay requests
Session Replay data (US)https://ka-aus1.contentsquare.net
https://ka.bf.contentsquare.net
https://ka.af.contentsquare.net
See Session Replay requests
Snapshot (EU)https://s.contentsquare.net
https://b.ba.contentsquare.net
https://b.aa.contentsquare.net
See Snapshot capture
Snapshot (US)https://s-aus1.contentsquare.net
https://b.bf.contentsquare.net
https://b.af.contentsquare.net
See Snapshot capture
Resources manager (EU)https://srm.ba.contentsquare.net
https://srm.aa.contentsquare.net
See Session Replay requests
Resources manager (US)https://srm.bf.contentsquare.net
https://srm.af.contentsquare.net
See Session Replay requests

Duplicate Error Analysis classes

Section titled Duplicate Error Analysis classes

If you see build errors similar to this, you need to remove the legacy error-analysis module from your build. For more details, see the Error Analysis migration guide.

> Task :app:checkDebugDuplicateClasses FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.contentsquare.android.ErrorAnalysisModule found...