AndroidStudio升级报错,Aapt2Exception,NDK_PROJECT_PATH=null

更新AndroidStudio3.2.1之后 异常:

1:Android NDK: APP_STL gnustl_static is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information.    .  Stop.
Open File
Error while executing process /Document/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=xxxxxx/src/main/jni/Android.mk }


2: .gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/4b08def479402136e743f7353242689f/aapt2-3.2.1-4818971-osx/aapt2 compile --legacy \
        -o \
       android/app/build/intermediates/incremental/mergeAgentDebugResources/merged.dir/values/values.xml
Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0


1.解决:mk文件
修改为:APP_STL :=  c++_static

 

 

2.修改ids.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="comment_action" type="id">false</item>

    <item name="sticker_item_linearlayout" type="id">false</item>
    <item name="post_location_name" type="id">false</item>
    <item name="post_location_latitude" type="id">false</item>
    <item name="post_location_longitude" type="id">false</item>
    <item name="glide_tag_id" type="id"/>

</resources>


修改为:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="comment_action" type="id"/>

    <item name="sticker_item_linearlayout" type="id"/>
    <item name="post_location_name" type="id"/>
    <item name="post_location_latitude" type="id"/>
    <item name="post_location_longitude" type="id"/>
    <item name="glide_tag_id" type="id"/>

</resources>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值