Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on application launch (Android 11) #14

Open
maxim-narchuk-cleverside opened this issue Dec 17, 2024 · 1 comment
Open

Crashes on application launch (Android 11) #14

maxim-narchuk-cleverside opened this issue Dec 17, 2024 · 1 comment

Comments

@maxim-narchuk-cleverside
Copy link

maxim-narchuk-cleverside commented Dec 17, 2024

Crashes on application launch

Platform: Android

Devices: Samsung Galaxy S20 FE 5G, Motorola One Hyper

OS Version: Android 11

Versions of Adapty SDK:

<?xml version="1.0" encoding="UTF-8"?>
<dependencies>
	<androidPackages>
		<androidPackage spec="io.adapty:android-sdk:2.9.1">
			<repositories>
				<repository>https://repo.maven.apache.org/maven2/</repository>
			</repositories>
		</androidPackage>
	</androidPackages>
	<iosPods>
		<iosPod name="Adapty" version="2.9.2" minTargetSdk="9.0">
		</iosPod>
	</iosPods>
</dependencies>

Crash-log

UserAgentRetriever$retrieveUserAgent$1.invoke
android.webkit.WebViewFactory$MissingWebViewPackageException - Failed to load WebView provider: No WebView installed

Fatal Exception: android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed
       at android.webkit.WebViewFactory.getProviderClass(WebViewFactory.java:435)
       at android.webkit.WebViewFactory.getProvider(WebViewFactory.java:252)
       at android.webkit.WebSettings.getDefaultUserAgent(WebSettings.java:1355)
       at com.adapty.internal.utils.UserAgentRetriever$retrieveUserAgent$1.invoke(UserAgentRetriever.kt:35)
       at com.adapty.internal.utils.UserAgentRetriever$retrieveUserAgent$1.invoke(UserAgentRetriever.kt:32)
       at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:30)
@vladd-g
Copy link
Collaborator

vladd-g commented Dec 17, 2024

Hi @maxim-narchuk-cleverside, thank you for the report! Could you please try replacing 2.9.1 with 2.9.2 in the line <androidPackage spec="io.adapty:android-sdk:2.9.1">?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants