java.io.filenotfoundexception:/home/ljh/.android/analytics.settings(权限被拒绝)
作者:互联网
当我开始Android工作室时,我得到了
could not initialize analytics, treating as opt-out. java.io.filenotfoundexception: /home/ljh/.android/analytics.settings (permission denied)
我该怎么办?我的操作系统是Ubuntu 32bit
解决方法:
解决方案是在您的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,android-studio-2-2 来源: https://codeday.me/bug/20190710/1429190.html