tried running “eas build -p android --profile development --local” but i get an error “TypeError: Invalid Version”
i would love to know what this means and how to solve this
tried running “eas build -p android --profile development --local” but i get an error “TypeError: Invalid Version”
i would love to know what this means and how to solve this
Hey @splashdev,
can you please share the development build link so that I can take a look and see what’s going on?
unfortunately i’m unable to generate a link
Are you seeing this error in the CLI when running the command you mentioned in the original post?
Are you able to build on the build servers? (i.e. without --local
)
yes I’m seeing this in the cli
i was unable to build on the build servers,
had had this error :
[stderr] A problem occurred evaluating project ':react-native-google-mobile-ads'.
Please provide the full error message
Unable to list file systems to check whether they can be watched. Assuming all file systems can be watched. Reason: Could not query file systems: could not open mount file (errno 2: No such file or directory)
25
> Task :react-native-gradle-plugin:compileKotlin
26
'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
27
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java
28
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java
29
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java
30
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (155, 32): 'BaseVariant' is deprecated. Deprecated in Java
31
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (161, 31): 'BaseVariant' is deprecated. Deprecated in Java
32
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (169, 36): 'BaseVariant' is deprecated. Deprecated in Java
33
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt: (100, 48): 'reactRoot: DirectoryProperty' is deprecated. reactRoot was confusing and has been replace with rootto point to your root project and reactNativeDir to point to the folder of the react-native NPM package
34
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java
35
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java
36
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java
37
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (28, 51): 'BaseVariant' is deprecated. Deprecated in Java
38
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (131, 12): 'ApplicationVariant' is deprecated. Deprecated in Java
39
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (132, 12): 'LibraryVariant' is deprecated. Deprecated in Java
40
w: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (252, 14): 'BaseVariant' is deprecated. Deprecated in Java
41
> Task :react-native-gradle-plugin:compileJava
42[stderr]
Note: /home/expo/workingdir/build/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
43[stderr]
Note: Recompile with -Xlint:deprecation for details.
44
> Task :react-native-gradle-plugin:pluginDescriptors
45
> Task :react-native-gradle-plugin:processResources
46
> Task :react-native-gradle-plugin:classes
47
> Task :react-native-gradle-plugin:inspectClassesForKotlinIC
48
> Task :react-native-gradle-plugin:jar
49
> Configure project :app
50
Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object: org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated.
51
> Configure project :expo-av
52
Checking the license for package NDK (Side by side) 21.4.7075529 in /home/expo/Android/Sdk/licenses
53
License for package NDK (Side by side) 21.4.7075529 accepted.
54
Preparing "Install NDK (Side by side) 21.4.7075529 (revision: 21.4.7075529)".
55
"Install NDK (Side by side) 21.4.7075529 (revision: 21.4.7075529)" ready.
56
Installing NDK (Side by side) 21.4.7075529 in /home/expo/Android/Sdk/ndk/21.4.7075529
57
"Install NDK (Side by side) 21.4.7075529 (revision: 21.4.7075529)" complete.
58
"Install NDK (Side by side) 21.4.7075529 (revision: 21.4.7075529)" finished.
59
Checking the license for package CMake 3.10.2.4988404 in /home/expo/Android/Sdk/licenses
60
License for package CMake 3.10.2.4988404 accepted.
61
Preparing "Install CMake 3.10.2.4988404 (revision: 3.10.2)".
62
"Install CMake 3.10.2.4988404 (revision: 3.10.2)" ready.
63
Installing CMake 3.10.2.4988404 in /home/expo/Android/Sdk/cmake/3.10.2.4988404
64
"Install CMake 3.10.2.4988404 (revision: 3.10.2)" complete.
65
"Install CMake 3.10.2.4988404 (revision: 3.10.2)" finished.
66
> Configure project :expo-eas-client
67
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
68
> Configure project :expo-structured-headers
69
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
70
> Configure project :expo-updates-interface
71
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
72
> Configure project :expo
73
Using expo modules
74
- expo-application (4.1.0)
75
- expo-av (11.2.3)
76
- expo-constants (13.1.1)
77
- expo-dev-client (1.2.1)
78
- expo-dev-launcher (1.2.1)
79
- expo-dev-menu (1.2.1)
80
- expo-eas-client (0.2.1)
81
- expo-error-recovery (3.1.0)
82
- expo-file-system (14.0.0)
83
- expo-font (10.1.0)
84
- expo-json-utils (0.3.0)
85
- expo-keep-awake (10.1.1)
86
- expo-linear-gradient (11.3.0)
87
- expo-manifests (0.3.1)
88
- expo-modules-core (0.9.2)
89
- expo-splash-screen (0.15.1)
90
- expo-structured-headers (2.2.1)
91
- expo-updates (0.13.4)
92
- expo-web-browser (10.2.1)
93
> Configure project :react-native-google-mobile-ads
94
:react-native-google-mobile-ads package.json found at /home/expo/workingdir/build/node_modules/react-native-google-mobile-ads/package.json
95
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
96
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
97
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
98
6 actionable tasks: 6 executed
99
Unable to list file systems to check whether they can be watched. The whole state of the virtual file system has been discarded. Reason: Could not query file systems: could not open mount file (errno 2: No such file or directory)
100[stderr]
FAILURE: Build completed with 2 failures.
101[stderr]
1: Task failed with an exception.
102[stderr]
-----------
103[stderr]
* Where:
104[stderr]
Build file '/home/expo/workingdir/build/node_modules/react-native-google-mobile-ads/android/build.gradle' line: 75
105[stderr]
* What went wrong:
106[stderr]
A problem occurred evaluating project ':react-native-google-mobile-ads'.
107[stderr]
> Cannot get property 'googleMobileAdsJson' on extra properties extension as it does not exist
108[stderr]
* Try:
109[stderr]
> Run with --stacktrace option to get the stack trace.
110[stderr]
> Run with --info or --debug option to get more log output.
111[stderr]
> Run with --scan to get full insights.
112[stderr]
==============================================================================
113[stderr]
2: Task failed with an exception.
114[stderr]
-----------
115[stderr]
* What went wrong:
116[stderr]
A problem occurred configuring project ':react-native-google-mobile-ads'.
117[stderr]
> compileSdkVersion is not specified. Please add it to build.gradle
118[stderr]
* Try:
119[stderr]
> Run with --stacktrace option to get the stack trace.
120[stderr]
> Run with --info or --debug option to get more log output.
121[stderr]
> Run with --scan to get full insights.
122[stderr]
==============================================================================
123[stderr]
* Get more help at https://help.gradle.org
124
Did you add the app ID to app.json
as per the comment on this Stack Overflow question?
See also: