清单文件
<manifest
xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="10000" android:versionName="1.0.0">
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" />
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="__APILEVEL__" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme">
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme">
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.tns.ErrorReportActivity" />
</application>
设备
银河s9加
重现步骤
rm -rf 平台
tns 运行 android --bundle
当应用程序启动时,它会给出以下错误
*问题**
System.err: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=31277, uid=10259 requires android.permission.INTERACT_ACROSS_USERS
System.err: at android.os.Parcel.readException(Parcel.java:1967)
System.err: at android.os.Parcel.readException(Parcel.java:1913)
System.err: at android.sec.clipboard.IClipboardService$Stub$Proxy.isEnabled(IClipboardService.java:757)
System.err: at com.samsung.android.content.clipboard.SemClipboardManager.isEnabled(SemClipboardManager.java:1008)
System.err: at android.widget.TextView.getSecClipboardEnabled(TextView.java:16134)
System.err: at android.widget.EditText.onFocusChanged(EditText.java:250)
..........