Installation error: INSTALL_FAILED_UID_CHANGED解决办法总结

本文总结了处理Android应用开发中由于包名不一致导致的错误的方法,包括通过调整包名使其与配置保持一致来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

软件报出来的错误,虽然提示的内容都是一样,但是因为每个人电脑环境的不同,解决方法也会有所不同。这里只是总结了其他前辈处理这个问题的方法,只做为参考用。如果还没有解决就需要根据自己的情况自由发挥了。


方法一:

http://blog.youkuaiyun.com/enhancing/article/details/8490473    这个里面提到的方法我试了没有用,但是也有朋友留言说解决了

方法二:

http://blog.youkuaiyun.com/ahacn/article/details/9931191   这位仁兄的贴子给了我很大的建议,不过我的解决和这个有一点区别

方法三:

            (引用方法二)把项目中实际包名和mainfest.xml中配置的包名保持一致即可避免出现该错误。

    我的AndroidManifest.xml 中

      <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
     
package="org.apache.cordova.example" 

      但是我发现的包名和配置中包名是相同的,然后抱着试试看的想法多给包名加了一级 package="org.apache.cordova.example.example"  ,保存修改的时候会提示出错,都是一些将包名修改成相同的路径就可以了。

重新编译一下项目我的问题就解决了。(你的问题就不知道存不存在了,祝你好运)





在ubuntu22.04码安装autoware.universe时报错如下,怎么解决码wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed.
07-22
wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed. wuhen@PC:~/autoware$
最新发布
07-22
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值