Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unfortunately App has stopped . #86

Open
PARAGJYOTI opened this issue Apr 14, 2017 · 0 comments
Open

Unfortunately App has stopped . #86

PARAGJYOTI opened this issue Apr 14, 2017 · 0 comments

Comments

@PARAGJYOTI
Copy link

PARAGJYOTI commented Apr 14, 2017

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant