Android接入穿山甲com.bytedance.sdk.openadsdk.TTFileProvider崩溃闪退
Android接入穿山甲广告SDK后
适配Anroid7.0及以上,添加 com.bytedance.sdk.openadsdk.TTFileProvider 后就闪退
<provider
android:name="com.bytedance.sdk.openadsdk.TTFileProvider"
android:authorities="${applicationId}.TTFileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
Logcar包错
Unable to get provider com.bytedance.sdk.openadsdk.TTFileProvider: java.lang.ClassNotFoundException: Didn't find class "com.bytedance.sdk.openadsdk.TTFileProvider" on path: DexPathList
需要在 gradle.properties 中增加下面的配置,就可以了
android.useAndroidX=true
android.enableJetifier=true
来自:Android疑难杂症