activity_main.xml文件
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="com.xqq.ndkjnidemo.MainActivity"/>
将xmlns:app="http://schemas.Android.com/apk/res-auto"改成xmlns:app="http://schemas.android.com/apk/package_name"即可。
(参考链接:http://blog.csdn.net/chun0801/article/details/53465643)
上面的package_name是AndroidManifest.xml 中定义的 package
<manifestxmlns:androidmanifestxmlns:android="http://schemas.android.com/apk/res/android" package="com.xxx.xxx.ui"
android:versionCode="1"
android:versionName="1.0" >
(参考链接:http://blog.csdn.net/lilu_leo/article/details/9275669)