question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] react-native-webview:compileDebugJavaWithJavac 10.2.2

See original GitHub issue

Bug description: I am getting one error when build android

cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { ^ symbol: variable Q location: class VERSION_CODES i try clean with ./gradlew clean and a new project but a have the same result

Environment:

  • OS: Linux 5.3
  • OS version: Ubuntu 18.04.4 LTS (Bionic Beaver)
  • react-native version: 0.62.2
  • react-native-webview version: 10.2.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:11
  • Comments:19

github_iconTop GitHub Comments

66reactions
dushyantsscommented, May 30, 2020

This issue is related to #1418

To fix it, you need to update your compileSdkVersion to 29. While you are at it, might as well update the buildToolsVersion. You can do that by changing these lines in your /android/build.gradle file.

...
buildscript {
    ext {
        ...
        buildToolsVersion = "29.0.3"
        compileSdkVersion = 29
        ...
    }
...
8reactions
gavrichardscommented, Jun 1, 2020

I’m experiencing this error too.

Changing the SDK version to 29 goes against the setup instructions for React Native which specify you should use Android SDK Platform 28 and build tools 28.0.3.

For that reason I’m reluctant to make these changes. Could this package be fixed to continue supporting 28? I’ll downgrade this package in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ANDROID] react-native-webview ... - GitHub
[ANDROID] react-native-webview:compileDebugJavaWithJavac BUILD ERROR on 10.2.1 #1415 ... This issue has been resolved in version 10.2.2.
Read more >
react-native-webview:compileDebugJavaWithJavac FAILED ...
I keep getting this error, when I try running my React Native application after installing the react-native.webview ...
Read more >
task :react-native-community_datetimepicker ... - You.com
When i try to run "react-native run-android" command i get build failed with error Execution failed for task ':app:compileDebugJavaWithJavac'. Reproducible Demo.
Read more >
react-native-webview:compileDebugJavaWithJavac'. RN - 掘金
下载最新的reactnative和react-native-webview后编译不成功修改android/build.gradle感觉是编译版本问题.
Read more >
react-native-webview vulnerabilities - Snyk
version published direct vulnerabilities 11.26.0 8 Dec, 2022 0. C. 0. H. 0. M. 0. L 11.25.1 6 Dec, 2022 0. C. 0. H. 0....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found