更新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>
版权声明
本文仅代表作者观点,不代表百度立场。
本文系作者授权百度百家发表,未经许可,不得转载。




