tapsellorg / TapsellPlusSDK-FlutterPlugin

Other
6 stars 2 forks source link

🐛 [BUG/ERROR]: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present] #12

Closed mahdi-malv closed 2 years ago

mahdi-malv commented 2 years ago

Describe the issue: Runing the app leads to this error:

Targeting S+ (version 31 and above) requires that 
  an explicit value for android:exported be defined when intent filters are present]

How to reproduce this issue:

App package name: Not important

mahdi-malv commented 2 years ago

Suggestion: To understand where the issue is caused, run the app (using flutter) and view android logcat Then filter with Error and stop when Targeting S+ ... was printed. The stacktrace guides you to it.

android:exported is commonly caused by old template of flutter which does not include this for Main Activity manifest. Fix it by adding it manually:

<activity
     android:name=".MainActivity"
     android:exported="true"
     android:launchMode="singleTop"
     android:theme="@style/LaunchTheme"
 </activity>

Ref: https://stackoverflow.com/questions/70333565/targeting-s-version-31-and-above-requires-that-an-explicit-value-for-android

mahdi-malv commented 2 years ago

Issue fully fixed in 2.1.7