尽管成功构建,但无法启动expo独立.apk

时间:2018-04-29 20:37:26

标签: react-native react-native-android expo

我无法在我的Android物理设备和模拟器上测试我的应用程序。

当我启动我的应用程序时。我收到以下错误

java.io.EOFException

我的应用已成功构建,但我在日志中遇到了一些错误。

[stderr] Unable to get progress logger. Download progress will not be displayed.
:ReactAndroid:prepareBoost
:ReactAndroid:downloadDoubleConversion
[stderr] Unable to get progress logger. Download progress will not be displayed.
:ReactAndroid:prepareDoubleConversion
:ReactAndroid:downloadFolly
[stderr] Unable to get progress logger. Download progress will not be displayed.
:ReactAndroid:prepareFolly
:ReactAndroid:downloadGlog
[stderr] Unable to get progress logger. Download progress will not be displayed.
:ReactAndroid:prepareGlog
:ReactAndroid:downloadJSCHeaders
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.
[stderr] Unable to get progress logger. Download progress will not be displayed.





[stderr] Note: Some input files use or override a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
[stderr] Note: Some input files use unchecked or unsafe operations.
[stderr] Note: Recompile with -Xlint:unchecked for details.





[stderr] warning: Attempt to recreate a file for type com.raizlabs.android.dbflow.config.ExponentKernel$Database
[stderr] warning: Attempt to recreate a file for type com.raizlabs.android.dbflow.config.ExponentKernel$Database
[stderr] warning: File for type 'com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder' created in the last round will not be subject to annotation processing.
[stderr] Note: Some input files use or override a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
[stderr] Note: Some input files use unchecked or unsafe operations.
[stderr] Note: Recompile with -Xlint:unchecked for details.
[stderr] 3 warnings





[stderr] /src/exponent/android-shell-app/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java:37: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
[stderr]   public AlertFragment(@Nullable DialogModule.AlertFragmentListener listener, Bundle arguments) {
[stderr]          ~~~~~~~~~~~~~
[stderr] /src/exponent/android-shell-app/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java:30: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
[stderr]   public SupportAlertFragment(@Nullable DialogModule.AlertFragmentListener listener, Bundle arguments) {
[stderr]          ~~~~~~~~~~~~~~~~~~~~
[stderr]    Explanation for issues of type "ValidFragment":
[stderr]    From the Fragment documentation:
[stderr]    Every fragment must have an empty constructor, so it can be instantiated
[stderr]    when restoring its activity's state. It is strongly recommended that
[stderr]    subclasses do not have other constructors with parameters, since these
[stderr]    constructors will not be called when the fragment is re-instantiated;
[stderr]    instead, arguments can be supplied by the caller with setArguments(Bundle)
[stderr]    and later retrieved by the Fragment with getArguments().
[stderr]    http://developer.android.com/reference/android/app/Fragment.html#Fragment()
[stderr] 2 errors, 0 warnings

我很困惑,我不知道如何处理这件事。我的应用程序在开发中工作得很好。

任何帮助?

0 个答案:

没有答案