A pit when configuring X5 WebView in Android Studio

Source: Internet
Author: User

In the second step of access X5, you need to configure the so file, here's the hole you're encountering

1. Need to download the demo back, otherwise you can not find so file, find so file and put it to their corresponding directory below, their own inside that directory is not, so with the folder to copy the past it.

2. Open the Build.gradle file in the corresponding module, and add the following configuration in defaultconfig{} in the file's android{} (if not defaultconfig{}): Ndk{abifilters " Armeabi "}, if you only write Ndk{abifilters" Armeabi "}, then also can not use, will error, look at the demo to know how to write, found pits, written below such.

NDK {abifilters "Armeabi", "armeabi-v7a", "x86", "MIPS"}

3. If the configuration after compiling the error, then you need to add Android.usedeprecatedndk=true in the Gradle.properties file; this also has a pit, if you only copy, the first letter capital, also will error, useless, It needs to be written down to the bottom of the line.

Android.usedeprecatedndk=true

For a novice like me, the feeling of stepping is a pit.

A pit when configuring X5 WebView in Android Studio

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.