android build failed with task :react-native-webview:compileDebugJavaWithJavac

See original GitHub issue

what I have done:

$ yarn add react-native-webview
$ react-native link react-native-webview

In android-studio after sync then I make project failed:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-webview:compileDebugJavaWithJavac'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
  • I have cleaned project
  • I have removed ~/.gradle/caches
  • I have removed project .gradle folder
    compileSdkVersion 27
    buildToolsVersion "27.0.3"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:12

github_iconTop GitHub Comments

7reactions
Joao-Leitecommented, Feb 20, 2019

Hi,

Im having the same problem running on react 0,57,1. after ejecting from expo

"… None of the following functions can be called with the arguments supplied: protected/protected and package/ constructor Event<T : Event<(raw) Event<>>!>() defined in com.facebook.react.uimanager.events.Event protected/protected and package/ constructor Event<T : Event<(raw) Event<>>!>(p0: Int, p1: Long) defined in com.facebook.react.uimanager.events.Event

  • What went wrong: Execution failed for task ‘:react-native-webview:compileDebugKotlin’ "
Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':app:mergeDebugNativeLibs'. #35215
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
Read more >
Execution failed for task ':app:compileDebugJavaWithJavac ...
I'm on Android Studio 3.1 Build #AI-173.4670197, built on March 22, ... the problem which come from java compiler instead of Build-Run task....
Read more >
Build Failed on Gradle Task - Visual Studio Feedback
Have created pipeline Task for Android Build setup. Task file - task: Gradle@2 inputs: gradleWrapperFile: 'android/gradlew' workingDirectory: 'android/' ...
Read more >
Dealing With Problems With Building the App & Detox
Execution failed for task ':app:processReleaseAndroidTestResources'. > A failure occurred while executing com.android.build.gradle.internal.res.
Read more >
Android Build Failed! - Unity Forum
Execution failed for task ':launcher:mergeReleaseResources'. > Multiple task action failures occurred: > A failure occurred while executing com.
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