Skip to content

HeadFirstAndroid/HeadFirstAndroidX

Repository files navigation

HeadFirstAndroidX

AndroidX

  • thirdparty 模块,依赖一些第三方 SDK ,看是否能编译通过
  • legacy 模块,尝试用老的 support libs ,只要不出现 support 相关的 import 就行,开启 android.enableJetifier=true 会把 support 的依赖转成 androidx ;

ClassNotFoundException: Didn't find class "org.apache.http.conn.scheme.SchemeRegistry"

加下 use-library

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/Theme.HeadFirstAndroidX">

        <uses-library
            android:name="org.apache.http.legacy"
            android:required="false" />

            </application>

About

support 和 androidx 混编尝试。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published