Android - App crashes on Pre-Lollipop devices

前端 未结 4 1291
栀梦
栀梦 2021-02-05 21:23

My app is running well on Lollipop devices but it keep crashing on prior to version Lollipop. I have simply implemented a banner add in my application with the following code th

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 21:56

    You should lower the API in your AndroidManifest.xml Lollipop is API 21.

    Check this out: API Levels Example:

       defaultConfig {
            applicationId "com.package.name"
            minSdkVersion 11
            targetSdkVersion 21
            versionCode 1
            versionName "1.0"
        }
    

提交回复
热议问题