Hello,
I am trying to build my project in a development server through eas-cli. But during the build, it returned an error in the build logs, saying:
[stderr]
/home/expo/workingdir/build/node_modules/expo-intent-launcher/android/src/main/java/expo/modules/intentlauncher/IntentLauncherModule.java:9: error: package android.support.annotation does not exist
1284[stderr]
``
import android.support.annotation.NonNull;
1285[stderr]
1286[stderr]
/home/expo/workingdir/build/node_modules/expo-intent-launcher/android/src/main/java/expo/modules/intentlauncher/IntentLauncherModule.java:54: error: cannot find symbol
1287[stderr]
public void startActivity(String activityAction, @NonNull ReadableArguments params, final Promise promise) {
1288[stderr]
1289[stderr]
symbol: class NonNull
1290[stderr]
location: class expo.modules.intentlauncher.IntentLauncherModule
1291[stderr]
2 errors
1292[stderr]
FAILURE: Build failed with an exception.
1293[stderr]
* What went wrong:
1294[stderr]
Execution failed for task ':expo-intent-launcher:compileDebugJavaWithJavac'.
1295[stderr]
> Compilation failed; see the compiler error output for details.
1296[stderr]
* Try:
1297[stderr]
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
1298[stderr]
* Get more help at https://help.gradle.org
1299[stderr]
BUILD FAILED in 2m 59s
Additional info:
I am using : expo-cli : 3.28.5
My eas.json:
{
“cli”: {
“version”: “>= 0.51.0”
},
“build”: {
“development”: {
“distribution”: “internal”,
“android”: {
“gradleCommand”: “:app:assembleDebug”
},
“ios”: {
“buildConfiguration”: “Debug”
}
},
“preview”: {
“distribution”: “internal”
},
“production”: {}
},
“submit”: {
“production”: {}
}
}