当我能够用CRNA创建我的应用程序,用npm弹出它,运行弹出,用npm运行android时,三周后发生了这种情况。在过去的20小时里,我删除了节点,android,android,并再次下载了它们。同样的错误也会发生。我完全不明白这些是因为gradle、java或android而发生的。我有两个问题。
问题
1.如何解决这个问题?
2.
( a) crna myApp -> cd myApp -> npm运行弹出-> npm运行android x
( b) react本机init myApp -> cd myApp -> react本机运行-android
第二个
我的react原生android应用程序的发布apk有问题,在开发时它工作得很好,但在发布时它会在启动时崩溃。我知道有很多类似的问题,但不同的应用程序不同。上一次我在4个月前构建了一个版本apk,它工作正常,我所做的唯一一件事就是升级我的依赖项,现在应用程序在启动时崩溃了,当我点击应用程序时,它会立即关闭。
这是我的logcat,但我不知道如何读取这些错误,有人能帮助我吗?
$ adb logcat -s System.err
--------- beginning of system
--------- beginning of crash
--------- beginning of ma
在将React- native -firebase添加到应用程序之后,尝试构建我的react本机项目会导致构建应用程序失败。我收到以下错误:
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find com.google.android.gms:play-services-measurement-api:9.8.0.
Searched in the following locations:
f
我正在使用React Native,并在构建过程中遇到了这个错误。我很确定这是因为SDK和支持库之间的不匹配,但我找不到正确的值。我应该使用哪个SDK版本和支持库。请帮帮我,我真的很为难。
:app:processDebugResources/Users/hg/Downloads/ecoway/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'andr
我正在使用React创建应用程序--本机,并在Android设备上进行测试。添加了react本机相机模块后,会发生以下错误:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':react-native-camera:compileDebugJavaWithJavac'.在“构建->运行任务”(Android )。
关于Java编译器,大约有20-30个错误,所有这些错误都显示如下:error: package android.support.annotation does no
我有一个android项目,它的proguard-project.txt是:
-ignorewarnings
-libraryjars libs(*.jar;)
-keep class android.support.v4.** { *; }
-keep class org.apache.commons.httpclient.** {*;}
-keep class com.nostra13.universalimageloader.** {*;}
-keep class org.codehaus.jackson.** {*;}
-keep class com.google.zxing.**
每次我尝试使用react-native run-android运行我的本机项目时,它都会抛出以下错误
\RenderableView.java:30: error: cannot find symbol
import com.facebook.react.bridge.ColorPropConverter;
\Documents\GitHubProjects\node_modules\react-native-svg\android\src\main\java\com\horcrux\svg\RenderableView.java:30: error: cannot find symbol
i
我是react-native的初学者,并试图通过遵循教程在我的react-native android应用程序中安装。
在进行了包括在内的所有更改后,我得到以下错误:-
Execution failed for task ':app:processDebugResources'.
以下是完整的回溯:
Scanning folders for symlinks in /home/vineet/test/maps4/node_modules (9ms)
JS server already running.
Building and installing the app on the
我使用react-native-init命令创建了应用程序。我安装了安卓工作室和Pixel 2 API 28。我可以成功地运行我的android模拟器。然后在我的项目目录中运行react原生运行-android。但是,在我的android模拟器上没有任何东西,我在终端中获得了这个输出:
info Starting JS server...
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
> Task :app:installD
由于某些原因,我无法构建我的项目。昨天一切都很好,看看,从5/11/21开始有一个关键的更新。
我试着按建议改变minSdkVersion,但仍然没有解决方案。
这是一个错误:
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDe