加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

java.io.filenotfoundexception:/home/ljh/.android/analytics.

发布时间:2020-12-15 02:17:35 所属栏目:Java 来源:网络整理
导读:当我开始 Android工作室时,我得到了 could not initialize analytics,treating as opt-out. java.io.filenotfoundexception: /home/ljh/.android/analytics.settings (permission denied) 我该怎么办?我的操作系统是Ubuntu 32bit 解决方法 解决方案是在您的
当我开始 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)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读