i want to use webview in a simple react native project.
I installed its library: npm install --save react-native-webview
then react-native run-android
had error:
A problem occurred configuring project ':react-native-webview'.
> Could not resolve all artifacts for configuration ':react-native-webview:class
path'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
I must use vpn in IRAN! to download this file from https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2-p roto/0.3.1/aapt2-proto-0.3.1.jar
I used VPN but react-native could not download it. also android studio could not download it. so I downloaded that file manually. but i do not know how can I use aapt2-proto-0.3.1.jar file in my react native project.
how can I resolve this problem?