Closed onur-ozkan closed 4 years ago
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
still the same error ? could you paste your AndroidManifest ?
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
still the same error ? could you paste your AndroidManifest ?
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.teeest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<application
android:allowBackup="false"
tools:replace="android:allowBackup"
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
I create a new project by react-native cli and getting that error. So I dont add anything extra than what the rn-rectangle-scanner documentation says.
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
still the same error ? could you paste your AndroidManifest ?
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA" /> <application android:allowBackup="false" tools:replace="android:allowBackup" android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> </application>
I create a new project by react-native cli and getting that error. So I dont add anything extra than what the rn-rectangle-scanner documentation says.
I see, i changed /src/debug/AndroidManifest.xml, in case of /src/main/AndroidManifest.xml you have to put xmlns:tools="http://schemas.android.com/tools" to the
like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.modalcamera" xmlns:tools="http://schemas.android.com/tools">
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
still the same error ? could you paste your AndroidManifest ?
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA" /> <application android:allowBackup="false" tools:replace="android:allowBackup" android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> </application>
I create a new project by react-native cli and getting that error. So I dont add anything extra than what the rn-rectangle-scanner documentation says.
I see, i changed /src/debug/AndroidManifest.xml, in case of /src/main/AndroidManifest.xml you have to put xmlns:tools="http://schemas.android.com/tools" to the element
like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.modalcamera" xmlns:tools="http://schemas.android.com/tools">
Its already in the file. Did you try to use the package on clean project ? We have like 10 people and all gets the same error.
simple fix, add something like <application ... android:allowBackup="false" tools:replace="android:allowBackup"> in AndroidManifest.xml
Doesnt fix.
still the same error ? could you paste your AndroidManifest ?
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.CAMERA" /> <application android:allowBackup="false" tools:replace="android:allowBackup" android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> </application>
I create a new project by react-native cli and getting that error. So I dont add anything extra than what the rn-rectangle-scanner documentation says.
I see, i changed /src/debug/AndroidManifest.xml, in case of /src/main/AndroidManifest.xml you have to put xmlns:tools="http://schemas.android.com/tools" to the element like this:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.modalcamera" xmlns:tools="http://schemas.android.com/tools">
Its already in the file. Did you try to use the package on clean project ? We have like 10 people and all gets the same error.
sure, i use it without problems my steps: react-native init camera (react-native": "0.61.5, react": "16.9.0) yarn add react-native-rectangle-scanner yarn add react-native-svg in settings.gradle: include ':openCVLibrary310' ... build -> crash as you mentioned (:app:processDebugManifest allowBackup...) i changed debug AndroidManifest.xml for sure i invalidated caches & restart android studio build and the result is camera overlay on the screen
This issue brings up a good point. Looks like there potentially are extra dependencies in the build.gradle file. We should be able to remove them, which may be prevent the need to add those changes to your manifest file.
As a workaround the changes to AndroidManifest.xml are the same changes I have in our production app, so that should be enough to get them to work. Make sure to invalidate the cache though.
This is fixed in the latest version (1.0.7). You shouldn't need to change your AndroidManifest.xml file anymore.
This is the output when I run 'react-native run-android'