gpt4 book ai didi

android - java.io.filenotfoundexception :/home/ljh/. android/analytics.settings(权限被拒绝)

转载 作者:太空宇宙 更新时间:2023-11-03 11:01:45 25 4
gpt4 key购买 nike

当我启动Android studio时,我得到了

could not initialize analytics, treating as opt-out. java.io.filenotfoundexception: /home/ljh/.android/analytics.settings (permission denied)

我该怎么办?我的操作系统是 Ubuntu 32 位

最佳答案

解决方案是在你的 ubuntu 机器上安装这些 32 位库

sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386

以下是通过发出上述命令解决的编译错误:

:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
Building Cordova app for Android \
:CordovaLib:generateReleaseBuildConfig
FAILEDding Cordova app for Android \

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

堆栈跟踪也可能显示这些错误

BUILD FAILED

Total time: 37.372 secs
%% Command finished with error code 1: /home/stens/src/github.com/loudthink/loudspeed/.meteor/local/cordova-build/platforms/android/gradlew cdvBuildRelease,-b,/home/stens/src/github.com/loudthink/loudspeed/.meteor/local/cordova-build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
=> Errors executing Cordova commands:

While building Cordova app for platform Android:
Error: /home/stens/src/github.com/loudthink/loudspeed/.meteor/local/cordova-build/platforms/android/gradlew: Command failed with exit code 1
Error output:
Could not initialize analytics, treating as opt-out.
java.io.FileNotFoundException: /home/stens/.android/analytics.settings (No such file or directory)

关于android - java.io.filenotfoundexception :/home/ljh/. android/analytics.settings(权限被拒绝),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40790885/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com