Android OSS license plugin crash on tapping menu items

前端 未结 2 1293
一向
一向 2021-01-01 11:41

I\'ve been trying out the Google APIs for Android OSS licenses tool and come across an issue.

The activity is being launched from a library module that contains the

相关标签:
2条回答
  • 2021-01-01 12:09

    Application tag

    <application
            android:theme="@style/AppTheme">
    
    application/>
    

    and styles.xml

     <!-- Base application theme. -->
        <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
            <!-- Customize your theme here. -->
            <item name="colorPrimary">@color/colorPrimary</item>
        </style>
    

    I hope ActionBar required to set Title of activity

    0 讨论(0)
  • 2021-01-01 12:24

    Just specify appropriate theme in the AndroidManifest.xml file for 2 activities OssLicensesMenuActivity and OssLicensesActivity. For example:

    <activity android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
        android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/>
    
    <activity android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
        android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/>
    
    0 讨论(0)
提交回复
热议问题