When starting app on android phone i get following error:
Application Virosample has not been registered.






@hannehanen Did you manage to fix your issue? Your code looks correct other than index.js not being saved :P

@talBebchuk , @hannehanen any solution ???
Not resolved =/
@hannehanen thank you ,
@DanielZlotin @guyca @yogevbd @gran33 help please !
Are you able to build the android project successfully?

I had success using Gradle v3.1.4 and following everything else in the installation guide. Maybe try downgrading Gradle?
APP.gradle here:
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
react-native bundle with the correct arguments during the Android buildapply from: "../../node_modules/react-native/react.gradle" line.project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
/**
/**
android {
compileSdkVersion 26
buildToolsVersion "28.0.3"
defaultConfig {
applicationId "com.virosample"
minSdkVersion 23
targetSdkVersion 26
missingDimensionStrategy "RNN.reactNativeVersion", "reactNative51"
multiDexEnabled true
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
flavorDimensions "Patrik"
productFlavors {
ar {
resValue 'string', 'app_name', 'ViroSample-ar'
buildConfigField 'String', 'VR_PLATFORM', '"GVR"' //default to GVR
}
gvr {
resValue 'string', 'app_name', 'ViroSample-gvr'
buildConfigField 'String', 'VR_PLATFORM', '"GVR"'
}
ovr {
resValue 'string', 'app_name', 'ViroSample-ovr'
applicationIdSuffix '.ovr'
buildConfigField 'String', 'VR_PLATFORM', '"OVR_MOBILE"'
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
// 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]
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 fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation project(':react-native-navigation')
api project(':arcore_client') // remove this if AR not required
api project(':gvr_common')
api project(path: ':viro_renderer')
api project(path: ':react_viro')
api 'com.google.android.exoplayer:exoplayer:2.7.1'
api 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
api 'com.amazonaws:aws-android-sdk-core:2.2.+'
api 'com.amazonaws:aws-android-sdk-ddb:2.2.+'
api 'com.amazonaws:aws-android-sdk-ddb-mapper:2.2.+'
api 'com.amazonaws:aws-android-sdk-cognito:2.2.+'
api 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.2.+'
}
// 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'
}
Project gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenLocal()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
maven {
url "$rootDir/../node_modules/react-native/android"
}
jcenter()
maven { url 'https://jitpack.io' }
}
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 19
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}
}
I had success using Gradle v3.1.4 and following everything else in the installation guide. Maybe try downgrading Gradle?
ok, i might try that in next couple of days.
My project is working fine with this solution: https://stackoverflow.com/questions/50683866/application-has-not-been-registered-react-native-navigation-v2?answertab=votes#tab-top
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Any updates on this issue? For me still happening.
Happening here also.
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.
Previous solution worked fine for me.
Most helpful comment
My project is working fine with this solution: https://stackoverflow.com/questions/50683866/application-has-not-been-registered-react-native-navigation-v2?answertab=votes#tab-top