1.Module into the SDK method
The first step: the module is under build.gradle
apply plugin: 'com.android.application' changed to
apply plugin: 'com.android.library'
delete under defaultConfig of applicationId build.gradle
Step Two: In the configuration file, delete the boot entry
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.pfj.bottomdialog">
<application>
<activity android:name=".activity.MyBottomActivity"></activity>
</application>
</manifest>
Step 3: Add in dependence on sdk app
implementation project(’:bottomdialog’)
Note: SDK inside the Activity name can not rely on the same module inside the Activity name, or there will be conflict
2. The method of direct generation SDK
Project Right --New - Module - Android Library directly create
and then add the same dependence on the required modules
implementation project(’:bottomdialog’)
3. Remove the SDK or Module
The first step: Removing the module under setting.gradle project name
Step two: Delete all dependent on the module
Step 3: Click sync sync now
Step Four: Right-click the module, delete