1. Create the uni-app project in HBuilder and obtain the AppID
2. Packaging
After successful packaging, resource files will appear ( changed resource files need to be copied to the Android Studio project later )
3. Download Android Studio and Android offline SDK
After downloading the Android offline SDK, you will get this directory and
import HBuilder-Integrate-AS into Android Studio.
4. Copy the resources packaged in HBuilder to Android Studio
You need to delete the first project and then copy ours into it
5. Apply for offline packaging Key and key
This package name is filled in the package name of the offline key applied for.
After the creation is successful, apply for the offline packaging key.
6. Modify configuration information
<provider android:name="io.dcloud.common.util.DCloud_FileProvider" android:authorities="com.android.simple.dc.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/dcloud_file_provider" /> </provider>
7. Start generating APK
The generated APK is sent directly to the mobile phone for installation.