Создать React Native для отображения ошибки (GET /index.delta?platform=android&dev=true&minify=false HTTP / 1.1) - PullRequest
0 голосов
/ 02 апреля 2019

Я разрабатываю реагирующее нативное приложение. Приложение React Native успешно запускается на телефоне Android, после чего открывается белый экран и отображается сообщение localhost: 8081 после закрытия нескольких приложений мяты и отображения ошибок (GET /index.delta?platform=android&dev=true&minify=false HTTP / 1.1 "200 -" - "" Как решить эту проблему. Пожалуйста, помогите заранее.

android\build.gradle

    build script {
        ext {
            buildToolsVersion = "28.0.2"
            minSdkVersion = 16
            compileSdkVersion = 28
            targetSdkVersion = 27
            supportLibVersion = "28.0.0"
        }
        repositories {
            google()
            jcenter()
        }
        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
        }
    }
    subprojects {
        afterEvaluate {project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion 28
                    buildToolsVersion "28.0.2"
                }
            }
        }
    }

    projects {
        repositories {
            mavenLocal()
                configurations.all {
       resolutionStrategy.eachDependency { DependencyResolveDetails details ->
       def requested = details.requested
           if (requested.group == 'com.google.android.gms') {
              details.useVersion '12.0.1'
           }
           if (requested.group == 'com.google.firebase') {
              details.useVersion '12.0.1'
             }
           }
         }
            google()
            jcenter()
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url "$rootDir/../node_modules/react-native/android"
            }
             maven {
                url 'some new extra repo'
            }
        }
    }


    task wrapper(type: Wrapper) {
        gradleVersion = '4.7'
        distributionUrl = distributionUrl.replace("bin", "all")
    }

    Android\app\build.gradle

    build script {
        ext {
            buildToolsVersion = "28.0.2"
            minSdkVersion = 16
            compileSdkVersion = 28
            targetSdkVersion = 27
            supportLibVersion = "28.0.0"
        }
        repositories {
            google()
            jcenter()
        }
        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
        }
    }
    subprojects {
        afterEvaluate {project ->
            if (project.hasProperty("android")) {
                android {
                    compileSdkVersion 28
                    buildToolsVersion "28.0.2"
                }
            }
        }
    }

    projects {
        repositories {
            mavenLocal()
                configurations.all {
       resolutionStrategy.eachDependency { DependencyResolveDetails details ->
       def requested = details.requested
           if (requested.group == 'com.google.android.gms') {
              details.useVersion '12.0.1'
           }
           if (requested.group == 'com.google.firebase') {
              details.useVersion '12.0.1'
             }
           }
         }
            google()
            jcenter()
            maven {
                // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
                url "$rootDir/../node_modules/react-native/android"
            }
             maven {
                url 'some new extra repo'
            }
        }
    }


    task wrapper(type: Wrapper) {
        gradleVersion = '4.7'
        distributionUrl = distributionUrl.replace("bin", "all")
    }

    package.json

    {
      "main": "node_modules/expo/AppEntry.js",
      "scripts": {
        "start": "expo start",
        "android": "expo start --android",
        "ios": "expo start --ios",
        "eject": "expo eject"
      },
      "dependencies": {
        "@babel/runtime": "^7.3.4",
        "@expo/vector-icons": "^9.0.0",
        "android": "0.0.8",
        "bootstrap": "^4.2.1",
        "expo": "^32.0.0",
        "history": "^4.7.2",
        "md5": "^2.2.1",
        "native-base": "^2.12.0",
        "react": "^16.5.0",
        "react-active-html": "^1.2.2",
        "react-bootstrap": "^1.0.0-beta.5",
        "react-burger-menu": "^2.6.3",
        "react-dom": "^16.8.0",
        "react-html-parser": "^2.0.2",
        "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
        "react-native-actionsheet": "^2.4.2",
        "react-native-api-client-wrapper": "^1.1.0",
        "react-native-camera": "^0.6.0",
        "react-native-camera-kit": "^7.3.6",
        "react-native-elements": "^1.0.0",
        "react-native-fontawesome": "^6.0.1",
        "react-native-google-places": "^2.5.2",
        "react-native-google-places-autocomplete": "^1.3.9",
        "react-native-image-uploader": "^1.0.0",
        "react-native-keyboard-aware-scroll-view": "^0.8.0",
        "react-native-loading-spinner-overlay": "^1.0.1",
        "react-native-maps": "^0.23.0",
        "react-native-material-bottom-navigation": "^1.0.2",
        "react-native-material-bottom-navigation-performance": "^0.7.8",
        "react-native-material-menu": "^0.4.2",
        "react-native-paper": "^2.11.1",
        "react-native-tabbar-bottom": "^1.0.4",
        "react-native-vector-icons": "^6.3.0",
        "react-navigation": "^3.3.0",
        "react-navigation-material-bottom-tabs": "^1.0.0",
        "react-router": "^4.3.1",
        "rn-sliding-up-panel": "^1.3.1",
        "xmldom": "^0.1.27"
      },
      "devDependencies": {
        "babel-preset-expo": "^5.0.0",
        "babel-preset-react-native": "^4.0.1"
      },
      "private": true
    }
...