我有一个实现ActivityEventListener的React Native Android Native模块
在Android studio中,它会生成一个方法:
onActivityResult(int,int,IntentData)
但是当我将它导入react native并尝试运行android时,它会要求提供一个需要实现的onNewIntent(Intent intent),并且
CLass is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent)
我正在尝试在Android上运行一个构建。我正在为Java库构建React-Native桥。但是,我得到了一个Duplicate class错误,看起来如下所示: Duplicate class org.apache.commons.lang3.builder.CompareToBuilder
found in modules commons-lang3-3.9.jar (org.apache.commons:commons-lang3:3.9)
and creditCardNfcReader-1.0.3-runtime.jar (com.github.pro100svitlo:cred
当我尝试将Google places api安装到我的react原生项目中并构建该项目时,它抛出了以下错误:
* What went wrong:
Could not determine the dependencies of task ':react-native-google-places:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-google-places:debugCompileClasspath'.
我已经根据yarn create expo-module创建了一个使用的世博会模块
当我在Android中打开模块的android文件夹并运行gradle同步时,它会产生一个错误:
Project with path ':expo-modules-core' could not be found in root project 'android'
Gradle脚本使用project(":expo-modules-core")。expo-modules-core位于node_modules目录中,但是expo-module纱线模板没有以任何方式连接
我正在尝试为android构建我的react本机项目,并在Windows上获得以下错误,但它在Mac上工作。
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1090 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installin
这是软件包的版本
"react": "18.0.0", "react-native": "0.69.0", "react-native-firebase-push-notifications": "^2.0.2"
我安装了react本机-火基-推-通知,然后我运行npx反应-本机运行-android,但是,我得到了这个错误。
error Failed to install the app. Make sure you have the Android development
environment
我一直在我的android设备上运行这个react-native项目,直到昨天,它一直工作得很顺利。 今天,当我运行react-native run-android时,我得到了以下错误: > Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve
我正试图在我的项目中安装反应式本机屏幕。我安装它时没有任何问题,但当我想运行该应用程序时,会出现以下问题:
Executing tasks: [:app:assembleDebug] in project D:\Programming\Projects\Sharmarket\mobile app\v1.0.0\Sharmarket\android
Gradle Daemon started in 3 s 898 ms
Task :app:generatePackageList
Task :app:preBuild
Task :react-native-screens
突然之间,我不能再构建react原生应用了。问题标题中提到的任务失败,并显示以下消息:
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.
我正在android中集成firebase,并且在重新定义android依赖项时遇到了问题。当我像这样在根build.gradle文件中添加依赖项时...
implementation 'com.google.android.gms:play-services-base:16+'
implementation 'com.google.firebase:firebase-core:17.2.0'
有了这个问题...
FAILURE: Build failed with an exception.
* What went wrong:
Could not
我刚刚开始了一份新的工作,我们在React Native中构建一个应用程序。在构建android版本时,我得到的错误是 Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.facebook.react:react-native:0.12.+. 我的同事没有得到这个错误,但我得到了。我在github问题上找到了this解决方案,最终为我解决了这个问题,但我们不想在没有理解为什么会发生或者为什么修复有效的情况下提交对构建过程的更