This repository was archived by the owner on Feb 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Unable to start scanner on Android 29 #54
Copy link
Copy link
Open
Description
Hi, I'm trying to run react-native-proximity on my pixel 3 device that uses Anroid 10,
I receive this error when running with adb logcat:
It works on different devices such as Galaxy 10+ and LG q8.
this is the log output for the Galaxy Device that runs Andorid 7:
I read this issue:
#20 (comment)
and according to the answers I needed to update my react-native-proximity android sdk.
after checking the sdk versions is found out the I run with -v 1.3.0
I updated the SDK to -v 1.4.5 but still the same result.
this is my app/build.gradle:
apply plugin: "com.android.application"
import com.android.build.OutputFile
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.jesta.a302181870"
missingDimensionStrategy 'react-native-camera', 'general'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
vectorDrawables.useSupportLibrary = true
versionCode 21
versionName "2.040"
multiDexEnabled true
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
manifestPlaceholders = [onesignal_app_id: "88743ac0-c32c-4789-b640-0c92fff49e39",
onesignal_google_project_number: "REMOTE"]
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
dependencies {
implementation project(':rn-fetch-blob')
implementation project(':estimote_react-native-proximity')
implementation project(':react-native-spinkit')
implementation project(':react-native-devsettings-android')
implementation project(':react-native-image-crop-picker')
implementation project(':react-native-reanimated')
implementation project(':@react-native-community_geolocation')
implementation project(':react-native-appearance')
implementation project(':bugsnag-react-native')
implementation project(':react-native-permissions')
implementation 'com.android.support:multidex:1.0.3'
implementation project(':react-native-mail')
implementation project(':react-native-camera')
implementation project(':tipsi-stripe')
implementation project(':@react-native-community_async-storage')
implementation project(':react-native-haptic-feedback')
implementation project(':react-native-app-settings')
implementation project(':react-native-splash-screen')
implementation project(':react-native-device-info')
implementation project(':react-native-firebase')
implementation project(':react-native-vector-icons')
implementation project(':react-native-gesture-handler')
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation project(':react-native-app-settings')
implementation project(':tipsi-stripe')
implementation project(':reactnativenotifications')
implementation project(':RNMail')
implementation project(':react-native-maps')
implementation project(':react-native-haptic-feedback')
implementation 'io.appgrades:appgrades:1.2.0@aar'
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.facebook.fresco:fresco:1.+'
// For animated GIF support
implementation 'com.facebook.fresco:animated-gif:1.+'
// For WebP support, including animated WebP
implementation 'com.facebook.fresco:animated-webp:1.+'
implementation 'com.facebook.fresco:webpsupport:1.+'
compile 'com.estimote:sdk:1.4.5'
implementation "com.facebook.react:react-native:+" // From node_modules
// Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation "com.google.firebase:firebase-messaging:17.5.0"
implementation "com.google.firebase:firebase-auth:17.0.0"
implementation fileTree(dir: "libs", include: ["*.jar"])
if (enableHermes) {
def hermesPath = "../../node_modules/hermesvm/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
Please help me out on this.
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

