native-navigation icon indicating copy to clipboard operation
native-navigation copied to clipboard

Unfortunately App has stopped .

Open PARAGJYOTI opened this issue 7 years ago • 0 comments

App is getting crashed when try to push() or present() , but registerScreen is working (probably) .

I dont think its a javascript issue . here's my gradle file

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    
	    dexOptions {
    jumboMode = true
}
	packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    defaultConfig {
        applicationId "com.shopfort"
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
		multiDexEnabled true
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
		signingConfigs {
        release {
            storeFile file(MYAPP_RELEASE_STORE_FILE)
            storePassword MYAPP_RELEASE_STORE_PASSWORD
            keyAlias MYAPP_RELEASE_KEY_ALIAS
            keyPassword MYAPP_RELEASE_KEY_PASSWORD
        }
    }
	
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    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]
            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 {
  
   
    compile project(':react-native-vector-icons')
    compile project(':react-native-spinkit')
    compile project(':react-native-share')

    compile project(':react-native-linear-gradient')
    
    compile(project(':react-native-fcm')){
	  exclude group: "com.google.firebase" 
	}
	 compile(project(':react-native-maps'))
	   {
	    exclude group: 'com.google.android.gms'
	   }
  
	
    compile ("com.google.firebase:firebase-core:9.8.0"){
	    force = true;
	}
	compile ('com.google.firebase:firebase-messaging:9.8.0'){
	   	    force = true;
	}
 

	
	compile ("com.google.android.gms:play-services-base:9.8.0") {
        force = true;
    }
    compile ("com.google.android.gms:play-services-maps:9.8.0") {
        force = true;
    }
	
    compile ('com.google.android.gms:play-services-gcm:9.8.0') {
        force = true;
    }
	
    compile project(':react-native-fbsdk')
    compile project(':react-native-camera')
    compile project(':lottie-react-native')
    compile project(':gl-react-native')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:25.1.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
    compile 'com.android.support:support-annotations:25.1.1'

    // add native-navigation
    compile project(':native-navigation')

Need help .

PARAGJYOTI avatar Apr 14 '17 20:04 PARAGJYOTI