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

Build failed on Android Target SDK 33 #963

Open
Louna-akkad1 opened this issue May 16, 2023 · 1 comment
Open

Build failed on Android Target SDK 33 #963

Louna-akkad1 opened this issue May 16, 2023 · 1 comment

Comments

@Louna-akkad1
Copy link

trying to build my app n Android Target SDK 33

cannot find symbol webView.getSettings().setAppCacheEnabled(appCacheEnabled); ^ symbol: method setAppCacheEnabled(boolean) location: class WebSettings

i can not downgrade my Target
is there is a way to fix this ?

@Louna-akkad1 Louna-akkad1 changed the title Closed Build failed on Android Target SDK 33 Build failed on Android Target SDK 33 May 16, 2023
@fedotxxl
Copy link

Copied locally, changed to

        webView.getSettings().setCacheMode((appCacheEnabled) ? WebSettings.LOAD_DEFAULT : WebSettings.LOAD_NO_CACHE);

Copied from https://github.com/react-native-webview/react-native-webview/pull/2583/files/f19acb21bb44b417bf2a51ddeb02d4b52d81ef44#diff-e9700631fc9fa5600d2e1ee70eb2d28aa2a1fbc695b85f99981972d3904ca485

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