LoginSignup
9
3

More than 5 years have passed since last update.

java.lang.SecurityException: Permission Denial:starting Intentの解決方法【ReactNative, Android】

Posted at

React Native開発時、react-native run-androidを実行するとjava.lang.SecurityException: Permission Denial:starting Intent...のようなエラーが発生することがあります。

その際は、AndroidManifest.xmlactivity内にandroid:exported="true"を追記すると解決します。

AndroidManifest.xml
<activity
    android:name="com.example.lib.MainActivity"
    android:label="LibMain" 
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" >
        </action>
    </intent-filter>
</activity>

android:exported="true"は他のアプリに対してこのAndroidコンポーネントを公開するかどうかを決定するプロパティです。

9
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
3