"one or more files did not pass the validity check" error when trying to build android-emulator from the aur

I was trying to build the “android-emulator” package from the air by using this command
pamac install android-emulator
but it shows this error one or more files did not pass the validity check.
Does anyone know of a fix,
thank you,
have a nice day.

Built fine for me.

CMD  merell   master  /  tmp  merell  android-emulator  makepkg
==> Making package: android-emulator 30.1.5-1 (Thu 01 Oct 2020 11:19:44 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading emulator-linux-6855416.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  242M  100  242M    0     0  20.0M      0  0:00:12  0:00:12 --:--:-- 19.7M
  -> Found android-emulator.sh
  -> Found android-emulator.csh
  -> Found package.xml
==> Validating source files with sha1sums...
    emulator-linux-6855416.zip ... Passed
    android-emulator.sh ... Passed
    android-emulator.csh ... Passed
    package.xml ... Passed
==> Extracting sources...
  -> Extracting emulator-linux-6855416.zip with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "android-emulator"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Signing package(s)...
  -> Created signature file android-emulator-30.1.5-1-x86_64.pkg.tar.zst.sig.
==> Finished making: android-emulator 30.1.5-1 (Thu 01 Oct 2020 11:20:15 AM EDT)

This is a quick package to build. Now might be the perfect time for you to learn how to build AUR packages manually.

Oh, and regarding

didn’t the output tell you which file (or all of them) that failed?

Try refreshing databases in pamac first.

Thanks everyone for the help,
I refreshed the databases and I found that I need to update,after the update I’ll try to build it again and if it still doesn’t work I will try to built it manually and I will report back later.

I updated but got an error in the lines of “failed configuring” or something like that,
but still I tried to build using the command, it didn’t work,

Building android-emulator...
==> Making package: android-emulator 30.1.5-1 (02 أكتوبر, 2020 11:36:11 ص)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found emulator-linux-6855416.zip
  -> Found android-emulator.sh
  -> Found android-emulator.csh
  -> Found package.xml
==> Validating source files with sha1sums...
emulator-linux-6855416.zip ... FAILED
android-emulator.sh ... Passed
android-emulator.csh ... Passed
package.xml ... Passed
==> ERROR: One or more files did not pass the validity check!
Error: Failed to build android-emulator

built it manually and it worked.

1 Like

Congrats. First time is usually the scariest; now, you know you don’t have to depend on any kind of ‘helper’ to install an AUR package.

I acually have manually built one or more AUR pakages before this.
Anyway,thank you so much