Select to view content in your preferred language

Build Errror

531
11
Jump to solution
01-30-2025 11:42 AM
Labels (2)
vijaybadugu
Frequent Contributor
What went wrong:
 
I am getting below error while building the application, Could you please suggest 
 
Execution failed for task ':arcgis_maps:buildCMakeDebug[arm64-v8a]'.
 
> com.android.ide.common.process.ProcessException: ninja: Entering directory `com.android.ide.common.process.ProcessException: ninja: Entering directory 
0 Kudos
1 Solution

Accepted Solutions
Kevin_Mueller
Esri Contributor

The provided installation scripts create symlinks to the binaries in the package folder downloaded from pub.dev. This is a required step making installation and updates more automated for both macOS and Windows development environments. For Windows, configuring symlinks requires an administrative account or a user-level account in Developer Mode.

If you are using two different accounts and having problems with the symlinks, which the above errors seem to indicate, it may be that the package is being saved somewhere in the administrative account that is inaccessible to the user account. If you are unable to use an administrative account or a user-level account in Developer Mode, then you could manually copy the ArcGIS binaries from the package folder. Note that the files would need to be re-copied whenever the ArcGIS Maps pub.dev package is updated.

To copy the files:

  1. Locate the package. It should be found in a path like: “C:\Users\<USER-ACCOUNT>\AppData\Local\Pub\Cache\hosted\pub.dev\arcgis_maps-200.6.0+4426”.
  2. From that folder, copy the “arcgis_maps_core” folder into the top level folder for your app.
  3. Create a directory called “jniLibs” under “android/app/src/main”.
  4. From “arcgis_maps_core”, copy the “arm64-v8a” and “x86_64”  folders into “android/app/src/main/jniLibs”.

View solution in original post

0 Kudos
11 Replies
Kevin_Mueller
Esri Contributor

Hello, and thanks for reaching out through the forum. I see you are having an issue building for Android. Could you please provide some more information about your issue?

  • What is your development system (Mac or Windows)?
  • What directory is causing the error?
  • Is this an issue in a new project or an existing one that has successfully built before?
  • If this is an existing project, what changed prior to the issue?

Providing this information and anything else you can think of will help us better assist you.

0 Kudos
vijaybadugu
Frequent Contributor

development Windows 11 

I built this project using admin account, now switched to normal user account and am getting error  . If you remove this dependency. The project is being built without any errors

 
com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\vbadugu\AppData\Local\Pub\Cache\hosted\pub.dev\arcgis_maps-200.6.0+4426\android\.cxx\Debug\3lp2q6i5\arm64-v8a'
 
cmd.exe /C "cd . && C:\Users\<user
>\AppData\Local\Android\Sdk\ndk\25.2.9519653\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe --target=aarch64-none-linux-android26 --sysroot=C:/Users/<user>/AppData/Local/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/windows-x86_64/s... -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared -Wl,-soname,libarcgis_maps.so -o D:\<Folder>\flutter_projects\arcgismaps\build\arcgis_maps\intermediates\cxx\Debug\3lp2q6i5\obj\arm64... CMakeFiles/arcgis_maps.dir/arcgis_maps.c.o -LD:/<Folder>/flutter_projects/arcgismaps/build/arcgis_maps/intermediates/cxx/Debug/3lp2q6i5/obj/arm64-v8a/../../... -lruntimecore -larcgis_maps_ffi -latomic -lm && cd ."
 
ld: error: unable to find library -lruntimecore
 
ld: error: unable to find library -larcgis_maps_ffi
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
ninja: build stopped: subcommand failed.
 
 
0 Kudos
Kevin_Mueller
Esri Contributor

On the command line in your app’s top folder, please try running `flutter pub upgrade` followed by `dart run arcgis_maps install`. Then try building your app again.

0 Kudos
vijaybadugu
Frequent Contributor

Built arcgis_maps:arcgis_maps.
Installing arcgis_maps_core from https://gisupdates.esri.com/ArcGIS_MapsSDK/200.6.0/arcgis_maps_core.tar.gz
Could not create a symlink. Either run this step in an elevated "Administrator" command prompt, or go to "Settings > Update & Security > For developers" and turn on "Developer Mode".
An unexpected error occurred. FileSystemException: Cannot create link, path = 'D:\<Folder>\flutter_projects\arcgismaps\arcgis_maps_core' (OS Error: A required privilege is not held by the client.
, errno = 1314)

0 Kudos
Kevin_Mueller
Esri Contributor

The arcgis_maps install script creates a symlink to the arcgis_maps binaries. A non-administrator user does not have the permission to create symlinks. You either need to run the installer as an administrator or turn on Developer mode as described in the error message.

0 Kudos
vijaybadugu
Frequent Contributor

I installed using admin account and closed all my VScode sessions and opened. it shows same error 

":buildCMakeDebug[arm64-v8a]'

0 Kudos
Kevin_Mueller
Esri Contributor

Is the Admin account a different login than the user level account, or are you trying to run with admin privileges in the user account?

0 Kudos
vijaybadugu
Frequent Contributor

We have two accounts: one is an admin account, and the other is a normal user account. I am developing an app using the normal account, and whenever administrative permissions are required (such as for installations), the system should automatically prompt for admin credentials. Do we need to use admin account for development ?

0 Kudos
Kevin_Mueller
Esri Contributor

The provided installation scripts create symlinks to the binaries in the package folder downloaded from pub.dev. This is a required step making installation and updates more automated for both macOS and Windows development environments. For Windows, configuring symlinks requires an administrative account or a user-level account in Developer Mode.

If you are using two different accounts and having problems with the symlinks, which the above errors seem to indicate, it may be that the package is being saved somewhere in the administrative account that is inaccessible to the user account. If you are unable to use an administrative account or a user-level account in Developer Mode, then you could manually copy the ArcGIS binaries from the package folder. Note that the files would need to be re-copied whenever the ArcGIS Maps pub.dev package is updated.

To copy the files:

  1. Locate the package. It should be found in a path like: “C:\Users\<USER-ACCOUNT>\AppData\Local\Pub\Cache\hosted\pub.dev\arcgis_maps-200.6.0+4426”.
  2. From that folder, copy the “arcgis_maps_core” folder into the top level folder for your app.
  3. Create a directory called “jniLibs” under “android/app/src/main”.
  4. From “arcgis_maps_core”, copy the “arm64-v8a” and “x86_64”  folders into “android/app/src/main/jniLibs”.
0 Kudos