Comments (4)
Update: I managed to repro the issue and found the root cause.
Somewhere between 28 and 29, when creating directories as part of adb push
, the behavior changed w.r.t. directory permissions.
On 28, the created directories via adb push
have the permissions drwxrwxr-x
.
On 29, the permissions are drwxrwx--x
. The difference is the read permission for others
. For some reason, this causes the adb push
to fail.
It turns out that inserting a adb shell mkdir -p /data/local/tmp/incrementaldeployment/com.example.android.bazel/native/
before pushing the files creates the directory with the correct permissions, and native_manifest
can be pushed correctly.
from examples.
Does regular adb install
work? Looks like adb push
under Bazel doesn't have the correct permissions.
As an aside and mentioned in the Slack chat, weโre in the process of open sourcing mobile-install v2. Itโs a complete rewrite of mobile-install in Starlark, and thereafter we will deprecate the native mobile-install in Bazel. AFAIUC, mi-v2 will solve this issue.
from examples.
I had this happen before and for me it was because the apk signature mismatch (because I switched computer), which was solved by uninstalling the old apk.
from examples.
A regular install works, yes. That's what we're using in Android Studio.
from examples.
Related Issues (20)
- Error: 'apple_common' value has no field or method 'multi_arch_split' on Bazel@HEAD HOT 4
- Error " no such target '@platforms//os:visionos': target 'visionos' not declared in package 'os' defined " with Bazel@HEAD
- Error: 'JavaInfo' value has no field or method 'transitive_deps' HOT 4
- Error occurred during the fetch of repository 'bazel_skylib~1.3.0' in Bazelmod with Bazel@HEAD HOT 3
- Next.js example uses invalid path to next binary for dev and start targets HOT 1
- frontend/react - Running js_run_devserver on windows not starting. HOT 8
- Error no such attribute 'temporary_directory' in 'xcodeproj_runner' rule with Bazel@HEAD HOT 2
- Dependency Dashboard
- Error android_jar requested an android sdk via toolchain resolution but hasn't set an appropriate --android_platforms value with Bazel@Head HOT 1
- ewdk
- example frontend/next.js doesn't work on windows HOT 8
- fatal error: jni.h: No such file or directory with Bazel@HEAD HOT 2
- [FR] demonstrate Next.js example with output: "standalone" HOT 4
- cpp-tutorial can't find external linux toolchain HOT 4
- cpp-tutorial doesn't work on AArch64 systems
- fatal error: 'jni.h' file not found with Bazel@HEAD HOT 1
- cpp-tutorial/stage1 bazel build looks for compiler in wrong /tmp path HOT 1
- frontend (basics_macos_latest) is flaky HOT 2
- Error No matching toolchains found for types @@bazel_tools//tools/jdk:runtime_toolchain_type. HOT 7
- ERROR: Failed to load Starlark extension '@@maven//:compat.bzl' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.