Comments (11)
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.
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.
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.
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 errorsFAILED
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.
Rect 15.3.1
React native 0.33.0
from react-native-webview-android.
I have exactly same issue
from react-native-webview-android.
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.
Hi,
it works ! thank you a lot.
Just a last question : scroll it is possible ?
from react-native-webview-android.
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.
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.
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)
- Manually replace WebView URL isn't working HOT 1
- handle onReceivedError in EventWebClient class
- mediaPlaybackRequiresUserAction similar support
- Can not navigate the new url when WebViewAndroid has props: onShouldStartLoadWithRequest
- onShouldStartLoadWithRequest is not working HOT 1
- Add TS typings to the lib HOT 4
- Update the example to not use the deprecated React.createClass
- Export WebViewAndroid as an ES6 module
- How do I receive a message sent by a webview in an html file when I load html? HOT 1
- Can you support input file multiple image HOT 1
- New cross-platform WebView package: react-native-webview HOT 3
- I wanna konw how to add a loading indicator HOT 1
- Execution failed for task ':react-native-webview-android:verifyReleaseResources'. HOT 4
- is this lib butter than the normal react native webview
- Gestures to zoom not working HOT 1
- OnMesage did not work HOT 5
- it not have onError or onLoad method HOT 2
- window.postMessage in HTML not work HOT 2
- Error: ERR_UNKNOWN_URL_SCHEME HOT 3
- Missing Browser State HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-webview-android.