expo: Installing dev client on android works fine but crashes when enabling remote debugging

Summary

I am trying to use a custom development build to be able to debug with flipper; however, when opening the downloaded apk on my android device and enableing remote debugging the apps crashes directly

Managed or bare workflow? If you have made manual changes inside of the ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android

Package versions

"expo": "~43.0.2",
"expo-community-flipper": "^43.0.5",
"expo-dev-client": "~0.6.3",
"expo-status-bar": "~1.1.0",
"react": "17.0.1",
"react-devtools-core": "^4.21.0",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-flipper": "^0.123.0",
"react-native-web": "0.17.1"

Environment

Expo CLI 4.12.12 environment info: System: OS: Windows 10 10.0.18362 Binaries: Node: 14.16.0 - C:\Program Files\nodejs\node.EXE npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7678000 npmPackages: expo: ~43.0.2 => 43.0.3 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 Expo Workflow: managed

Reproducible demo

import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View } from "react-native";
// App.tsx
import { connectToDevTools } from "react-devtools-core";
if (__DEV__) {
	connectToDevTools({
		host: "localhost",
		port: 8097,
	});
}

export default function App() {
	return (
		<View style={styles.container}>
			<Text>Open up App.tsx to start working on your app</Text>
			<StatusBar style="auto" />
		</View>
	);
}

const styles = StyleSheet.create({
	container: {
		flex: 1,
		backgroundColor: "#fff",
		alignItems: "center",
		justifyContent: "center",
	},
});

https://github.com/ramiel1999/eas-trial-error

Stacktrace (if a crash is involved)

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 21 (12 by maintainers)

Most upvoted comments

Will try, but this may take a while 😉

Thanks @ramiel1999. https://github.com/ramiel1999/eas-trial-error doesn’t include expo-dev-client, but I was able to reproduce on my own.