Builded apk chrashes on Android 7

Hello,

the app works fine in Android Studio virtual device and pyhsical device in simaulator. But after building the apk with exp build:android and installing, the app crashes every time when I want to click an element.

Here are the errors I found in the expo log of the build process. Does anybody can give some help here?

[stderr] Generating 2,048 bit RSA key pair …
######################################################################
/src/exponent/tools-public /src/exponent/android/app
[09:45:05]
Using gulpfile /src/exponent/tools-public/gulpfile.js
[09:45:05]
Starting ‘generate-dynamic-macros’…
Downloading DEV published kernel manifest…
[stderr] Unable to download manifest from undefined: Can’t read JSON file: /src/exponent/dev-home-config.json
[stderr] └─ Cause: Error: ENOENT: no such file or directory, open ‘/src/exponent/dev-home-config.json’
Using published dev version of Expo Home
[09:45:05]
Finished ‘generate-dynamic-macros’ after 15 ms
/src/exponent/android/app
#######################################################################
[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:39: 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:32: 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] Fragment  |  Android Developers
[stderr] 2 errors, 0 warnings

My package.json:

{
“name”: “picapptwo”,
“version”: “0.1.0”,
“private”: true,
“devDependencies”: {
“react-native-debugger-open”: “^0.3.17”,
“react-native-scripts”: “1.13.1”,
“jest-expo”: “26.0.0”,
“react-test-renderer”: “16.3.0-alpha.1”
},
“main”: “./node_modules/react-native-scripts/build/bin/crna-entry.js”,
“scripts”: {
“start”: “react-native-scripts start”,
“eject”: “react-native-scripts eject”,
“android”: “react-native-scripts android”,
“ios”: “react-native-scripts ios”,
“test”: “jest”,
“postinstall”: “rndebugger-open --expo”
},
“jest”: {
“preset”: “jest-expo”
},
“dependencies”: {
@redux-offline/redux-offline”: “^2.3.2”,
“expo”: “^26.0.0”,
“prop-types”: “^15.6.1”,
“react”: “16.3.0-alpha.1”,
“react-native”: “expo/react-native/archive/sdk-26.0.0.tar.gz”, //edited, because I only may have two links in this post!
“react-native-animatable”: “^1.2.4”,
“react-native-autocomplete-input”: “^3.5.0”,
“react-navigation”: “^1.5.9”,
“react-redux”: “^5.0.7”,
“redux”: “^3.7.2”,
“redux-devtools-extension”: “^2.13.2”,
“redux-logger”: “^3.0.6”,
“redux-observable”: “^0.18.0”,
“redux-promise-middleware”: “^5.0.0”,
“redux-saga”: “^0.16.0”,
“redux-thunk”: “^2.2.0”,
“rxjs”: “^5.5.8”
}
}

In alogcat on the physical android device i found this error:
E/ActivityManager( 810): applyOptionsLocked: Unknown animationType=0

But I do not know if it has anything to do with it

Here are the logs from alogcat: Sorry, its only a picture:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.