1、新建一个工程包

Android  studio 添加引用新建类库

Android  studio 添加引用新建类库

2、修改AndroidManifest.xml

将AndroidManifest.xml 修改为

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="项目包名">

<application android:allowBackup="true" android:label="@string/app_name"
android:supportsRtl="true">

</application>

</manifest>

 

相关文章: