gcloud components update crashes when updating to 224.0.0 - gcloud

When running "gcloud components update" or "gcloud components list", it crashes with the error message: TypeError: unsupported operand type(s) for +=: 'int' and 'NoneType'
How to solve the problem?

If you see this error, it is most likely that you installed the container-builder-local component. The crash is because this component was removed in version 224.0.0 and replaced with cloud-build-local.
So the work-around is:
remove container-builder-local: gcloud components remove container-builder-local
update: gcloud components update
install cloud-build-local: gcloud components install cloud-build-local

I'm currently on gcloud v222.0.0 and ran into the error:
ERROR: gcloud crashed (TypeError): unsupported operand type(s) for +=: 'int' and 'NoneType' when trying to update components.
I can confirm that removing container-build-local and updating to cloud-build-local fixes this error.
Installing components from version: 224.0.0
┌──────────────────────────────────────────────────────┐
│ These components will be installed. │
├──────────────────────────────────┬─────────┬─────────┤
│ Name │ Version │ Size │
├──────────────────────────────────┼─────────┼─────────┤
│ Google Cloud Build Local Builder │ 0.4.2 │ 5.9 MiB │
│ Google Cloud Build Local Builder │ │ │
└──────────────────────────────────┴─────────┴─────────┘
I was caught unaware of this breaking change

Related

* What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed with multiple errors, see logs

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
Manifest merger failed with multiple errors, see logs
Try:
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.
Get more help at https://help.gradle.org
BUILD FAILED in 16s
┌─ Flutter Fix ─────────────────────────────────────────────────────────────────────────────────┐
│ The plugin tflite requires a higher Android SDK version. │
│ Fix this issue by adding the following to the file │
│ C:\Users\Maennah\Dropbox\PC\Documents\GitHub\thesis\startup\android\app\build.gradle: │
│ android { │
│ defaultConfig { │
│ minSdkVersion 19 │
│ } │
│ } │
│ │
│ Note that your app won't be available to users running Android SDKs below 19. │
│ Alternatively, try to find a version of this plugin that supports these lower versions of the │
│ Android SDK. │
│ For more information, see: │
│ https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration │
└───────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDebug failed with exit code 1
Already change
android { │
│ defaultConfig { │
│ minSdkVersion 19
Yet, the error is still present.

GCP Cloud Build suddenly cannot fetch npm package from Github Package

I've my working Cloud Build fetching private npm package from Github.
I've already setup the .yarnrc npmRegistryScopes and auth token.
It worked for the whole day.
Then suddenly it stopped working and gave me this in the Cloud Build yarn install step.
YN0035: │ #myorg/mypackage#npm:0.3.3::__archiveUrl=https%3A%2F%2Fnpm.pkg.github.com%2Fdownload%2F%40myorg%2Fmypackage%2F0.3.3%2F02814855b510d459819aba67f3727764aaf46a06: The remote server failed to provide the requested resource
➤ YN0035: │ Response Code: 403 (Forbidden)
➤ YN0035: │ Request Method: GET
➤ YN0035: │ Request URL: https://npm.pkg.github.com/download/#myorg/mypackage/0.3.3/02814855b510d459819aba67f3727764aaf46a06
I've no idea what happening.
Oh dear, I spent 3 hours to figure it out, It is the billing issue.

Buildroot configure image with external linaro toolchian

I have problem with buildroot external toolchain;
finally I have received the following error when I put the "make linux-menuconfig" command (I want to use this config menu for eth driver)
ubuntu#upc:~/buildroot-2021.02.5$ make linux-menuconfig
BR_BINARIES_DIR=/home/ubuntu/buildroot-2021.02.5/output/images PKG_CONFIG_PATH="" /usr/bin/make -j9 -C /home/ubuntu/buildroot-2021.02.5/output/build/linux-5.10.9 HOSTCC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc -O2 -I/home/ubuntu/buildroot-2021.02.5/output/host/include -L/home/ubuntu/buildroot-2021.02.5/output/host/lib -Wl,-rpath,/home/ubuntu/buildroot-2021.02.5/output/host/lib" ARCH=arm INSTALL_MOD_PATH=/home/ubuntu/buildroot-2021.02.5/output/target CROSS_COMPILE="/home/ubuntu/buildroot-2021.02.5/output/host/bin/arm-linux-gnueabihf-" DEPMOD=/home/ubuntu/buildroot-2021.02.5/output/host/sbin/depmod INSTALL_MOD_STRIP=1 HOSTCC="/usr/bin/gcc" menuconfig
scripts/Kconfig.include:39: compiler '/home/ubuntu/buildroot-2021.02.5/output/host/bin/arm-linux-gnueabihf-gcc' not found
scripts/kconfig/Makefile:29: recipe for target 'menuconfig' failed
make[3]: *** [menuconfig] Error 1
Makefile:602: recipe for target 'menuconfig' failed
make[2]: *** [menuconfig] Error 2
linux/linux.mk:575: recipe for target '/home/ubuntu/buildroot-2021.02.5/output/build/linux-5.10.9/.kconfig_editor_menuconfig' failed
make[1]: *** [/home/ubuntu/buildroot-2021.02.5/output/build/linux-5.10.9/.kconfig_editor_menuconfig] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
before this command I have done "make" successfully and the toolchain configuration is like that:
Toolchain type (External toolchain) ---> │ │
│ │ *** Toolchain External Options *** │ │
│ │ Toolchain (Custom toolchain) ---> │ │
│ │ Toolchain origin (Pre-installed toolchain) ---> │ │
│ │ (gcc-linaro) Toolchain path │ │
│ │ (arm-linux-gnueabihf) Toolchain prefix │ │
│ │ External toolchain gcc version (7.x) ---> │ │
│ │ External toolchain kernel headers series (4.10.x) ---> │ │
│ │ External toolchain C library (glibc/eglibc) ---> │ │
│ │ [*] Toolchain has SSP support? │ │
│ │ [*] Toolchain has SSP strong support? │ │
│ │ [*] Toolchain has RPC support? │ │
│ │ [*] Toolchain has C++ support? │ │
│ │ [ ] Toolchain has D support? │ │
│ │ [ ] Toolchain has Fortran support? │ │
│ │ [ ] Toolchain has OpenMP support? │ │
│ │ [ ] Copy gdb server to the Target │ │
│ │ *** Host GDB Options *** │ │
│ │ [ ] Build cross gdb for the host │ │
│ │ *** Toolchain Generic Options *** │ │
│ │ [ ] Copy gconv libraries │ │
│ │ () Extra toolchain libraries to be copied to target │ │
│ │ [*] Enable MMU support │ │
│ │ () Target Optimizations │ │
│ │ () Target linker options │ │
│ │
[ ] Register toolchain within Eclipse Buildroot plug-in
When I checked the arm-linux-gnueabihf, I have received the following output, I have installed linaro gnueabihf toolchain and saved it as "gcc-linaro"
ubuntu#upc:~/buildroot-2021.02.5$ find . -name *linux-gnueabi*
./gcc-linaro/bin/arm-linux-gnueabihf-ranlib
./gcc-linaro/bin/arm-linux-gnueabihf-gcc-ar
./gcc-linaro/bin/arm-linux-gnueabihf-gcc
./gcc-linaro/bin/arm-linux-gnueabihf-gcov-tool
./gcc-linaro/bin/arm-linux-gnueabihf-objcopy
./gcc-linaro/bin/arm-linux-gnueabihf-c++
./gcc-linaro/bin/arm-linux-gnueabihf-gfortran
./gcc-linaro/bin/arm-linux-gnueabihf-c++filt
./gcc-linaro/bin/arm-linux-gnueabihf-strip
./gcc-linaro/bin/arm-linux-gnueabihf-g++
./gcc-linaro/bin/arm-linux-gnueabihf-gcov-dump
./gcc-linaro/bin/arm-linux-gnueabihf-gcc-7.5.0
./gcc-linaro/bin/arm-linux-gnueabihf-ld
./gcc-linaro/bin/arm-linux-gnueabihf-gcc-nm
./gcc-linaro/bin/arm-linux-gnueabihf-ld.gold
./gcc-linaro/bin/arm-linux-gnueabihf-gcov
./gcc-linaro/bin/arm-linux-gnueabihf-size
./gcc-linaro/bin/arm-linux-gnueabihf-ar
./gcc-linaro/bin/arm-linux-gnueabihf-addr2line
./gcc-linaro/bin/arm-linux-gnueabihf-cpp
./gcc-linaro/bin/arm-linux-gnueabihf-readelf
./gcc-linaro/bin/arm-linux-gnueabihf-as
./gcc-linaro/bin/arm-linux-gnueabihf-gprof
./gcc-linaro/bin/arm-linux-gnueabihf-gcc-ranlib
./gcc-linaro/bin/arm-linux-gnueabihf-nm
./gcc-linaro/bin/arm-linux-gnueabihf-gdb-add-index
./gcc-linaro/bin/arm-linux-gnueabihf-strings
./gcc-linaro/bin/arm-linux-gnueabihf-elfedit
./gcc-linaro/bin/arm-linux-gnueabihf-gdb
./gcc-linaro/bin/arm-linux-gnueabihf-objdump
./gcc-linaro/bin/arm-linux-gnueabihf-ld.bfd
./gcc-linaro/bin/arm-linux-gnueabihf-dwp
./gcc-linaro/share/man/man5/arm-linux-gnueabihf-gdbinit.5
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-readelf.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-strip.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gprof.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-cpp.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gdb.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-dlltool.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-objcopy.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-addr2line.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gfortran.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gcov-dump.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gcov-tool.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-as.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-nm.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-strings.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gcc.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-nlmconv.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-ranlib.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-windres.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-ar.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-c++filt.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gdbserver.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-g++.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-objdump.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gdb-add-index.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-size.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-gcov.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-ld.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-elfedit.1
./gcc-linaro/share/man/man1/arm-linux-gnueabihf-windmc.1
./gcc-linaro/lib/gcc/arm-linux-gnueabihf
./gcc-linaro/libexec/gcc/arm-linux-gnueabihf
./gcc-linaro/arm-linux-gnueabihf
./gcc-linaro/arm-linux-gnueabihf/include/c++/7.5.0/arm-linux-gnueabihf
./output/host/arm-buildroot-linux-gnueabihf
./output/host/bin/arm-linux-gnueabihf-*
./output/build/libwebsockets-4.0.21/contrib/cross-arm-linux-gnueabihf.cmake
Could you guide me at that point ?
I want to add eth interface to images and arm-linux-gnueabihf external toolchain,
my host pc is ubuntu 18
the buildroot version is buildroot-2021.02.5
linaro version is gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf.tar.xz
Thank you!
│ │ Toolchain (Custom toolchain) --->
│ │ Toolchain origin (Pre-installed toolchain) --->
│ (gcc-linaro) Toolchain path
...
For the Toolchain path you need to specify a full, absolute path, and not just the name of a directory.
I have installed linaro gnueabihf toolchain and saved it as "gcc-linaro"
You seem to have installed this Linaro toolchain under your Buildroot directory.
Since this is supposed to be an external toolchain (i.e. external to Buildroot), that really does not make sense.
For instance I install such toolchains at /opt/linaro/
x:/opt$ la -1 linaro
gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabi
gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi
gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabi
gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf
x:/opt$
Also verify that all required packages are installed for your host system; study docs/manual/prerequisite.txt or https://buildroot.org/downloads/manual/manual.html#requirement

Ionic framework: Error after updating ionic version to 4

I’ve this issue after updating ionic version. I cant even start my ionic project. Is there anyone who can help me through this. Thank you. since I cant use ionic info, I just list npm to show what I've so far.
$ npm list -g --depth=0
/Users/phyopwintthu/.nvm/versions/node/v10.10.0/lib
├── cordova#8.0.0
├── hoek#5.0.4
├── ionic#4.1.2
├── npm#6.4.1
├── socks#2.2.1
└── ws#3.3.2
> $ ionic events.js:167
> throw er; // Unhandled 'error' event
> ^
>
> TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be one of
> type string or Buffer. Received type object
> at validChunk (_stream_writable.js:258:10)
> at WriteStream.Writable.write (_stream_writable.js:292:21)
> at process.<anonymous> (/Users/phyopwintthu/.nvm/versions/node/v10.10.0/lib/node_modules/ionic/bin/ionic:9:63)
> at process.emit (events.js:182:13)
> at emitPromiseRejectionWarnings (internal/process/promises.js:105:20)
> at process._tickCallback (internal/process/next_tick.js:69:34) Emitted 'error' event at:
> at validChunk (_stream_writable.js:261:12)
> at WriteStream.Writable.write (_stream_writable.js:292:21)
> [... lines matching original stack trace ...]
> at process._tickCallback (internal/process/next_tick.js:69:34)
You can try this;
npm uninstall -g ionic#4
and later
npm install -g ionic#3
and also if you want to change your ionic version, you can check Upgrade Link

How to run nativescript project in another visual studio code

I created android app using native script and i am using visual studio code.
so i want to run same project in another laptop using visual studio code.
so please tell me how to run because whenever i am trying to run project,its not able to build.
here is error:
E:\NS-APP\sample-ImageUpload-master>tns run android Skipping prepare.
Searching for devices... Building project...
Configuring > 0/3 projects > root project :config phase: createDefaultIncludeFiles
+found plugins: nativescript-background-http
+found plugins: nativescript-telerik-ui
+found plugins: tns-core-modules-widgets
:config phase: createPluginsConfigFile
Creating product flavors include.gradle file in E:\NS-APP\sample-ImageUpload-master\platforms\android/configurations
folder...
:config phase: pluginExtend
+applying configuration from: E:\NS-APP\sample-ImageUpload-master\platforms\android\configurations\include.gradle
+applying configuration from: E:\NS-APP\sample-ImageUpload-master\platforms\android\configurations\nativescript-background-http\include.gradle
+applying configuration from: E:\NS-APP\sample-ImageUpload-master\platforms\android\configurations\nativescript-telerik-ui\include.gradle
+applying configuration from: E:\NS-APP\sample-ImageUpload-master\platforms\android\configurations\tns-core-modules-widgets\include.gradle
Configuring > 0/3 projects > root project :config phase: addAarDependencies
+adding dependency: E:\NS-APP\sample-ImageUpload-master\platforms\android\libs\aar\Common-2017.1.222-dev-release.aar
+adding dependency: E:\NS-APP\sample-ImageUpload-master\platforms\android\libs\aar\Data-2017.1.222-dev-release.aar
+adding dependency: E:\NS-APP\sample-ImageUpload-master\platforms\android\libs\aar\List-2017.1.222-dev-release.aar
+adding dependency: E:\NS-APP\sample-ImageUpload-master\platforms\android\libs\aar\Primitives-2017.1.222-dev-release.aar
+adding dependency: E:\NS-APP\sample-ImageUpload-master\platforms\android\libs\aar\widgets-release.aar
The JavaCompile.setDependencyCacheDir() method has been deprecated and
is scheduled to be removed in Gradle 4.0. The
TaskInputs.source(Object) method has been deprecated and is scheduled
to be removed in Gradle 4.0. Please use
TaskInputs.file(Object).skipWhenEmpty() instead. Incremental java
compilation is an incubating feature. The Task.leftShift(Closure)
method has been deprecated and is scheduled to be removed in Gradle
5.0. Please use Task.doLast(Action) instead.
at build_1xv9gqucl7v9i0b8ti7pqf8cd.run(E:\NS-APP\sample-ImageUpload-master\platforms\android\build-tools\android-static-binding-generator\build.gradle:126)
:preBuild UP-TO-DATE :preF0F1F2DebugBuild UP-TO-DATE
:checkF0F1F2DebugManifest :preF0F1F2ReleaseBuild UP-TO-DATE
:prepareBackHttpAppRuntimeUnspecifiedLibrary UP-TO-DATE
:prepareComAndroidSupportAnimatedVectorDrawable2531Library UP-TO-DATE
:prepareComAndroidSupportAppcompatV72531Library UP-TO-DATE
:prepareComAndroidSupportDesign2531Library UP-TO-DATE
:prepareComAndroidSupportRecyclerviewV72531Library UP-TO-DATE
:prepareComAndroidSupportSupportCompat2531Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUi2531Library UP-TO-DATE
:prepareComAndroidSupportSupportCoreUtils2531Library UP-TO-DATE
:prepareComAndroidSupportSupportFragment2531Library UP-TO-DATE
:prepareComAndroidSupportSupportMediaCompat2531Library UP-TO-DATE
:prepareComAndroidSupportSupportV42531Library UP-TO-DATE
:prepareComAndroidSupportSupportVectorDrawable2531Library UP-TO-DATE
:prepareComAndroidSupportTransition2531Library UP-TO-DATE
:prepareCommon20171222DevReleaseLibrary UP-TO-DATE
:prepareData20171222DevReleaseLibrary UP-TO-DATE
:prepareList20171222DevReleaseLibrary UP-TO-DATE
:prepareNetGotevUploadservice303Library UP-TO-DATE
:preparePrimitives20171222DevReleaseLibrary UP-TO-DATE
:prepareWidgetsReleaseLibrary UP-TO-DATE
:prepareF0F1F2DebugDependencies :compileF0F1F2DebugAidl UP-TO-DATE
:compileF0F1F2DebugRenderscript UP-TO-DATE
:generateF0F1F2DebugBuildConfig UP-TO-DATE :cleanLocalAarFiles
:ensureMetadataOutDir :collectAllJars :setProperties
:generateTypescriptDefinitions SKIPPED :copyTypings SKIPPED
:asbg:generateInterfaceNamesList :asbg:traverseJsFiles
:asbg:runAstParser UP-TO-DATE :asbg:generateBindings Exception in
thread "main" java.io.IOException: File already exists. This may lead
to undesired behavior. Please change the name of one of the extended
classes.
E:\NS-APP\sample-ImageUpload-master\platforms\android\src\main\java\com\tns\gen\net\gotev\uploadservice\UploadServiceBroadcastReceiver_ftns_modules_nativescript_background_http_background_http_l6_c79__.java
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:60)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:15)
:asbg:generateBindings FAILED
FAILURE: Build failed with an exception.
Where: Build file 'E:\NS-APP\sample-ImageUpload-master\platforms\android\build-tools\android-static-binding-generator\build.gradle'
line: 251
What went wrong: Execution failed for task ':asbg:generateBindings'.
Process 'command 'C:\Program Files\Java\jdk1.8.0_131\bin\java.exe'' finished with non-zero exit value 1
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 14.86 secs Command
E:\NS-APP\sample-ImageUpload-master\platforms\android\gradlew.bat
failed with exit code 1
run android
┌────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis
│ │ Run on all connected │ $ tns run android [--key-store-path --key-store-password --key │ │ devices and running
│ -store-alias --key-store-alias-password ]
[--release] [--justlaunch] │ │ emulators │
│ │ Run on a selected │ $ tns run android --device
[--key-store-path --key-store │ │ connected device
or │ -password --key-store-alias
--key-store-alias-password ] [- │ │ running emulator │ -release] [--justlaunch] │ │ Start an emulator and │ $ tns run android --emulator [] [--key-store-path --key │ │ run the app inside
it │ -store-password --key-store-alias
--key-store-alias-password │ │ │ ] [--release] [--justlaunch]
│
└────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────┘
Runs your project on a connected Android device or in a native Android
emulator, if configured. This is shorthand for prepare, build and
deploy. While your app is running, prints the output from the
application in the console and watches for changes in your code. Once
a change is detected, it synchronizes the change with all selected
devices and restarts/refreshes the application.
Options
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
* --device - Specifies a connected device/emulator on which to run the app.
* --emulator - If set, runs the app in a native emulator for the target platform, if configured. When set, you can also set any other
valid combination of emulator options as listed by $ tns help emulate
android.
* --release - If set, produces a release build. Otherwise, produces a debug build. When set, you must also specify the
--key-store-* options.
* --key-store-path - Specifies the file path to the keystore file (P12) which you want to use to code sign your APK. You can use the
--key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --key-store-password - Provides the password for the keystore file specified with --key-store-path. You can use the --key-store-*
options along with --release to produce a signed release build. You
need to specify all --key-store-* options.
* --key-store-alias - Provides the alias for the keystore file specified with --key-store-path. You can use the --key-store-* options
along with --release to produce a signed release build. You need to
specify all --key-store-* options.
* --key-store-alias-password - Provides the password for the alias specified with --key-store-alias-password. You can use the
--key-store-* options along with --release to produce a signed release build. You need to specify all --key-store-* options.
* --justlaunch - If set, does not print the application output in the console.
* --clean - If set, forces rebuilding the native application.
Attributes
* <Device ID> is the index or name of the target device as listed by $ tns device android
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
Sending exception report (press Ctrl+C to stop).....
Reset your entire project by deleting node_modules, platforms and hooks folders and then rebuild the project with tns build android or tns run android
You need not delete node_modules and hooks, just deleting platforms and rebuilding should be fine.
rm -rf platforms
tns run android