Android Oss License Plugin Crash On Tapping Menu Items
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 preferences aspe
Solution 1:
Just specify appropriate theme in the AndroidManifest.xml
file for 2 activities OssLicensesMenuActivity and OssLicensesActivity. For example:
<activityandroid:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/><activityandroid:name="com.google.android.gms.oss.licenses.OssLicensesActivity"android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"/>
Solution 2:
Application tag
<applicationandroid:theme="@style/AppTheme">
application/>
and styles.xml
<!-- Base application theme. --><stylename="AppTheme"parent="Theme.AppCompat.Light.DarkActionBar"><!-- Customize your theme here. --><itemname="colorPrimary">@color/colorPrimary</item></style>
I hope ActionBar
required to set Title of activity
Post a Comment for "Android Oss License Plugin Crash On Tapping Menu Items"