简体   繁体   中英

Can not generate Android Apk from React Native Project on Windows

I can't build android apk from react-native project on Windows machine. you can see on this screenshot the error message I am getting in cmd

在此处输入图片说明

first of all AAPT is the Android Asset Packaging Tool . There are some rules about how to name your assets. For example if I remember well you can't use upper case letter in the name. So change pictureNew.png to picturenew.png.

Then try to upgrade the sdk, I am using this right now :

 compileSdkVersion 26
 buildToolsVersion "26.0.2"

and:

 compile "com.android.support:appcompat-v7:26.0.2"

And check if you have included in your path the platform-tools from your android SDK, and the JAVA sdk path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM