Android 反应本机:E未知:反应本机:在接收到上一个手势的“向上”或“取消”之前获得向下触控
在ReactNative(android)中获得下一个错误Android 反应本机:E未知:反应本机:在接收到上一个手势的“向上”或“取消”之前获得向下触控,android,react-native,Android,React Native,在ReactNative(android)中获得下一个错误 E未知:反应本机:在收到上一个手势的“向上”或“取消”之前获得向下触碰 PowerWrap:PowerHal_TouchBoost 屏幕不会对触摸事件做出反应,看起来像是冻结,但所有运行成功结果和调试器的后台任务都不会显示其他错误 RN 0.63.3 RN导航7.0.0 编辑: android/settings.gradle apply from: file("../node_modules/@react-native-c
- E未知:反应本机:在收到上一个手势的“向上”或“取消”之前获得向下触碰
- PowerWrap:PowerHal_TouchBoost
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
applyNativeModulesSettingsGradle(settings)
include ':app'
android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
FLIPPER_VERSION=0.54.0
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
android/build.gradle
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "29.0.0"
kotlinVersion = "1.3.61"
RNNKotlinVersion = kotlinVersion
}
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath("com.android.tools.build:gradle:3.5.3")
classpath 'com.google.gms:google-services:4.3.3'
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
...
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation "androidx.multidex:multidex:2.0.1"
}
...
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
applyNativeModulesAppBuildGradle(project)
android/gradle/wrapper/gradle-wrapper.properties
android.useAndroidX=true
android.enableJetifier=true
FLIPPER_VERSION=0.54.0
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
android/app/build.gradle
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "29.0.0"
kotlinVersion = "1.3.61"
RNNKotlinVersion = kotlinVersion
}
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath("com.android.tools.build:gradle:3.5.3")
classpath 'com.google.gms:google-services:4.3.3'
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
...
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation "androidx.multidex:multidex:2.0.1"
}
...
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
applyNativeModulesAppBuildGradle(project)
docs react native navigation 7.0中的MainApplication/MainActivity.java我不知道它是否正确,但我在rnn文档中找到了解决方案: app/build.gradle
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 19
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "29.0.0"
kotlinVersion = "1.3.61"
RNNKotlinVersion = kotlinVersion
}
repositories {
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath("com.android.tools.build:gradle:3.5.3")
classpath 'com.google.gms:google-services:4.3.3'
}
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
url("$rootDir/../node_modules/react-native/android")
}
maven {
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
...
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation "androidx.multidex:multidex:2.0.1"
}
...
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
applyNativeModulesAppBuildGradle(project)
依赖项{…实现'com.android.support:design:25.4.0'实现'com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}}
添加这两个依赖项解决了问题。请发布最小可复制代码、预期行为和错误。所以这里的伙计们可以帮你。要问一个好问题,请遵循本指南。问题已编辑