Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Execution failed for task ':react-native-google-place-picker:compileDebugJavaWithJavac'. #33

Open
gaschneidr opened this issue Jan 29, 2018 · 4 comments

Comments

@gaschneidr
Copy link

gaschneidr commented Jan 29, 2018

Hi, when I tried to run for android I got the error bellow:

`> Task :react-native-google-place-picker:compileDebugJavaWithJavac
C:\Apps\lovefree\node_modules\react-native-google-place-picker\android\src\main\java\com\reactlibrary\RNGooglePlacePickerPackage.java:20: error: method does not override or implement a method from a supertype
@OverRide
^
Note: C:\Apps\lovefree\node_modules\react-native-google-place-picker\android\src\main\java\com\reactlibrary\RNGooglePlacePickerModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-google-place-picker:compileDebugJavaWithJavac'.`

It appears that the issue is within the source code for the package. I'm using react-native version 0.51.0 and react-native-google-place-picker: ^1.2.1.

I followed the installation instructions from the readme.md: installed the package using npm and had to link it manually since the automatic link was finishing with an error. I am currently only testing for android, not sure if the error persists for ios.

I'm not sure if I am doing something wrong but I would appreciate some help. Thank you in advance

@rantoniops
Copy link

I'm having the exact same issue

@mathewtd87
Copy link

Same issue here, and I'm still very fresh out of Uni as a developer so I'm stuck! Any ideas? Has anyone got any links or information that may help??

@gaschneidr
Copy link
Author

As a workaround I commented the override line and it worked

@tanvoid0
Copy link

tanvoid0 commented Sep 3, 2020

As a workaround I commented the override line and it worked

Thanks, It worked for me <3

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

No branches or pull requests

4 participants