Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 来自GIT的react本机UI资源管理器示例无法在Mac上使用Genymotion模拟Android运行 我按照从GIT中提取的react本机示例(UIExplorer、Movies等)的说明进行设置,按照在以下位置设置的说明进行设置- 我试图将其设置为通过Mac上的Genymotion Android模拟器预览示例。 *之前所有关于设置、提取回购等的步骤都是成功的,没有错误。 *然后在Mac上的bash shell上执行以下语句_Java_Android_React Native_Genymotion_Building - Fatal编程技术网

Java 来自GIT的react本机UI资源管理器示例无法在Mac上使用Genymotion模拟Android运行 我按照从GIT中提取的react本机示例(UIExplorer、Movies等)的说明进行设置,按照在以下位置设置的说明进行设置- 我试图将其设置为通过Mac上的Genymotion Android模拟器预览示例。 *之前所有关于设置、提取回购等的步骤都是成功的,没有错误。 *然后在Mac上的bash shell上执行以下语句

Java 来自GIT的react本机UI资源管理器示例无法在Mac上使用Genymotion模拟Android运行 我按照从GIT中提取的react本机示例(UIExplorer、Movies等)的说明进行设置,按照在以下位置设置的说明进行设置- 我试图将其设置为通过Mac上的Genymotion Android模拟器预览示例。 *之前所有关于设置、提取回购等的步骤都是成功的,没有错误。 *然后在Mac上的bash shell上执行以下语句,java,android,react-native,genymotion,building,Java,Android,React Native,Genymotion,Building,/gradlew:Examples:UIExplorer:android:app:installDebug 生成时显示以下错误 _:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC /Users/xxx/gitRepo/react native/Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java:63:错误:找不到符号 mReactInstanceMan

/gradlew:Examples:UIExplorer:android:app:installDebug

生成时显示以下错误

_:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC /Users/xxx/gitRepo/react native/Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java:63:错误:找不到符号

  mReactInstanceManager.onPause();
                       ^
  mReactInstanceManager.onResume(this, this);
                       ^
符号:方法onPause() 位置:ReactInstanceManager类型的变量mReactInstanceManager /Users/xxx/gitRepo/react native/Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java:72:错误:找不到符号

  mReactInstanceManager.onPause();
                       ^
  mReactInstanceManager.onResume(this, this);
                       ^
符号:恢复方法(UIExplorerActivity,UIExplorerActivity) 位置:ReactInstanceManager类型的变量mReactInstanceManager 2个错误 :示例:UIExplorer:android:app:CompiledBugJavaWithJavaC失败

失败:生成失败,出现异常

  • 出了什么问题: 任务的执行失败:示例:UIExplorer:android:app:compiledBugJavaWithJavaC’

    编译失败;有关详细信息,请参阅编译器错误输出

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出

构建失败_

使用--debug参数可以显示类似的信息

11:47:06.178[INFO][org.gradle.api.internal.tasks.compile.JdkJavaCompiler]使用JDK Java编译器api编译

11:47:06.434[ERROR][system.err]/Users/xxx/gitRepo/react native/Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java:63:ERROR:找不到符号

  mReactInstanceManager.onPause();
                       ^
  mReactInstanceManager.onResume(this, this);
                       ^
11:47:06.434[ERROR][system.err]mReactInstanceManager.onPause()

11:47:06.434[错误][系统.错误]
^ 11:47:06.435[ERROR][system.err]符号:方法onPause()

11:47:06.435[错误][系统.err]位置:ReactInstanceManager类型的变量mReactInstanceManager

11:47:06.440[错误][system.err]/Users/xxx/gitRepo/react native/Examples/UIExplorer/android/app/src/main/java/UIExplorerActivity.java:72:错误:找不到符号

  mReactInstanceManager.onPause();
                       ^
  mReactInstanceManager.onResume(this, this);
                       ^
11:47:06.441[ERROR][system.err]mReactInstanceManager.onResume(这个,这个)

11:47:06.441[错误][系统错误] ^ 11:47:06.441[ERROR][system.err]符号:恢复方法(UIExplorerActivity,UIExplorerActivity)

11:47:06.441[错误][系统.err]位置:ReactInstanceManager类型的变量mReactInstanceManager

11:47:06.464[错误][系统错误]2个错误

11:47:06.465[DEBUG][org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter]已完成执行任务:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC'

11:47:06.465[生命周期][classorg.gradle.TaskExecutionLogger]:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC失败

11:47:06.466[INFO][org.gradle.execution.taskgraph.AbstractTaskPlanExecutor]:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC(线程[Daemon worker Thread 4,5,main])已完成。花了0.319秒

11:47:06.466[DEBUG][org.gradle.execution.taskgraph.AbstractTaskPlanExecutor]任务工作线程[Thread[Daemon worker Thread 4,5,main]]完成,忙:5.546秒,空闲:0.049秒

11:47:06.468[错误][org.gradle.BuildExceptionReporter]

11:47:06.468[错误][org.gradle.BuildExceptionReporter]失败:生成失败,出现异常

11:47:06.468[错误][org.gradle.BuildExceptionReporter]

11:47:06.469[错误][org.gradle.BuildExceptionReporter]*出了什么问题:

11:47:06.469[错误][org.gradle.BuildExceptionReporter]任务的执行失败:示例:UIExplorer:android:app:CompiledBugJavaWithJavaC'

11:47:06.469[错误][org.gradle.BuildExceptionReporter]>编译失败;有关详细信息,请参阅编译器错误输出

11:47:06.469[错误][org.gradle.BuildExceptionReporter]

11:47:06.469[错误][org.gradle.BuildExceptionReporter]*尝试:

11:47:06.470[错误][org.gradle.BuildExceptionReporter]使用--stacktrace选项运行以获取堆栈跟踪

11:47:06.471[生命周期][org.gradle.BuildResultLogger]

11:47:06.471[生命周期][org.gradle.BuildResultLogger]生成失败

11:47:06.471[生命周期][org.gradle.BuildResultLogger]

11:47:06.471[生命周期][org.gradle.BuildResultLogger]总时间:14.184秒

11:47:07.413[INFO][org.gradle.launcher.daemon.client.DaemonClient]收到结果失败[value=org.gradle.initialization.ReportedException:org.gradle.internal.exceptions.LocationawareeException:任务执行失败

':Examples:UIExplorer:android:app:compileDebugJavaWithJavac']from DaemonInfo{pid=23827,address=[0c64a320-a8e2-43e3-ad0a-0b3dfff7feca端口:65276,address:[/0:0:0:1,/127.0.0.1]],idle=true

context=DefaultDaemonContext[uid=dba435c0-a637-4e5b-8486-166f81a1489c,javaHome=/Library/Java/JavaVirtualMachines/jdk1.8.066.jdk/Contents/Home,daemonRegistryDir=/Users/xxx/.gradle/daemode,pid=23827,idleTimeout=10800000,daemonts=-XX>:MaxPermSize=256m,-:-XX:-heapdumponautofmemoryError,-,-,-,--Xmx1024m,--Dfile.encoding=UTF-8,--Duser.country=US.language,-,-,-,--Duser(应该完成构建)

并且使用-info参数也会返回相同的信息