Fix react-native pack apk picture does not show problems

Source: Internet
Author: User



Workaround:



Locate the project in the Android directory under the Gradle.properties file to open the Add code below:


Android.enableaapt2=false This piece of code is very important to the official website missing. Otherwise the package apk image does not appear. Add a path by customizing the images in the project.

2, modify the APK file name problem when installing APK
  Appdemo is the project folder name
Change the name of the Appdemo when you install the APK.
3,apk icon Problem


In the Res folder there are these are the APK's appearance icons if you want to change the icon these files should be safely replaced as a whole. These files are just different sizes of icons.

Fix react-native pack apk picture does not show problems


Related Article

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.