Coder Social home page Coder Social logo

Comments (11)

lucasferreira avatar lucasferreira commented on June 2, 2024 1

Can you please, user rnpm to configure the module in your project?

Clean all the configures that you made manually in your project to install react-native-webview-android

And then reinstall the module again npm install react-native-webview-android --save

You can also install the rnpm as described here: https://github.com/rnpm/rnpm#getting-started

npm install rnpm -g (or sudo npm install rnpm -g)

Before that you can enter in the root of your app cd /Users/justine/Sites/huhschool-app and run that command:

rnpm link react-native-webview-android

rnpm will do for you all the 'configure' jobs, including place de module inside your .java files.

If after that you still with errors in you app compiling, please report here again ;)

from react-native-webview-android.

lucasferreira avatar lucasferreira commented on June 2, 2024

Hi @justineraze

I guess that you are loading/setup twice the module. Please review all the configuration steps and files.

Be careful with *.gradle files, there are two of them, but each has it correct config.

from react-native-webview-android.

justineraze avatar justineraze commented on June 2, 2024

Hi ,
thank you for your help, this issue is now solved.
I am facing another issue: Please find below the error message

:react-native-webview-android:processReleaseJavaRes UP-TO-DATE
:react-native-webview-android:compileReleaseJavaWithJavac
/Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewModule.java:24: error: RNWebViewModule is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent) in ActivityEventListener
public class RNWebViewModule extends ReactContextBaseJavaModule implements ActivityEventListener {
       ^
/Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewModule.java:153: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-webview-android:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

thank you in advance

from react-native-webview-android.

lucasferreira avatar lucasferreira commented on June 2, 2024

This is not a normal or comon error.

What is your React Native version?

I guess again that some of your configs are wrong.

Em quarta-feira, 14 de setembro de 2016, Justine Raze <
[email protected]> escreveu:

Hi ,
thank you for your help, this issue is now solved.
I am facing another issue: Please find below the error message

:react-native-webview-android:processReleaseJavaRes UP-TO-DATE
:react-native-webview-android:compileReleaseJavaWithJavac
/Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewModule.java:24: error: RNWebViewModule is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent) in ActivityEventListener
public class RNWebViewModule extends ReactContextBaseJavaModule implements ActivityEventListener {
^
/Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewModule.java:153: error: method does not override or implement a method from a supertype
@OverRide
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/justine/Sites/huhschool-app/node_modules/react-native-webview-android/android/src/main/java/com/burnweb/rnwebview/RNWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors

FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-webview-android:compileReleaseJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

thank you in advance


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#59 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOT_5_rjo03xPaCxN7I6SzUJycpOM63ks5qp78ggaJpZM4J70kU
.

Sent from Gmail Mobile

from react-native-webview-android.

justineraze avatar justineraze commented on June 2, 2024

Rect 15.3.1
React native 0.33.0

from react-native-webview-android.

justineraze avatar justineraze commented on June 2, 2024

I have exactly same issue

from react-native-webview-android.

lucasferreira avatar lucasferreira commented on June 2, 2024

Hi @justineraze

You are right! The RN Activity API change a lot from 0.32 to 0.33 version, so I had to updated the module.

Can you reinstall/update you module install to the latest (1.1.10) and try again?

from react-native-webview-android.

justineraze avatar justineraze commented on June 2, 2024

Hi,
it works ! thank you a lot.
Just a last question : scroll it is possible ?

from react-native-webview-android.

lucasferreira avatar lucasferreira commented on June 2, 2024

Scrollbars don't, but "scrolling" it's possible, if your WebView has flex: 1 style and the webpage/content of them is taller then the viewport, just drag up or down and your content will scroll.

from react-native-webview-android.

Rylai-Zihang avatar Rylai-Zihang commented on June 2, 2024

Hi~I tried both the ways you describe in readme.md and the way pf rnpm but they all failed.
Error info is as follows:

:react-native-webview-android:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-webview-android:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 12.931 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

from react-native-webview-android.

lucasferreira avatar lucasferreira commented on June 2, 2024

Hi @Rylai-Zihang

I recommend at first you cleanup your project, delete every mention to react-native-webview-android in your gradle, build and Java files.

After that you can reinstall the module again with npm install.

If you use a newer version o React Native you could try inside your AppDir the follow command:

cd /YourPath/ToYour/AppDir
react-native link

From the lastest versions of React Native the command are react-native link instead of rnpm.

Doing that you don't need to put anything manually in your config files.

from react-native-webview-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.