zoukankan      html  css  js  c++  java
  • android studio 配置相关问题

    1:Unknown AVD name, use -list-avds to see valid list.

    下午1:26    Emulator: emulator: ERROR: Unknown AVD name [Pixel_2_API_26], use -list-avds to see valid list.

    下午1:26    Emulator: Process finished with exit code 1

    解决办法:

    I experienced the same issue, regardless of the AVD. I'm too new to understand why, but it seems that Android Studio created /.android/avd directories in two locations:

    1. /root/.android/avd
    2. /home/USERNAME/.android/avd

    The .avd and .ini created when creating a new AVD were stored in the 1st location, and the 2nd location was empty. To resolve it, I copied and pasted both the .avd and .ini files for each AVD from 1 to 2 (they needed to be in both in order for AS to see and run the AVD). The emulator then ran successfully.

    https://stackoverflow.com/questions/48996437/process-finished-with-exit-code-1-unknown-avd-name

    2:循环依FAILURE: Build failed with an exception.

    
    * What went wrong:
    Circular dependency between the following tasks:
    :app:checkManifestChangesDebug
    --- :app:instantRunMainApkResourcesDebug
         --- :app:transformClassesAndDexWithShrinkResForDebug
              --- :app:transformDexArchiveWithDexMergerForDebug
                   +--- :app:preColdswapDebug
                   |    --- :app:incrementalDebugTasks
                   |         +--- :app:transformClassesAndClassesEnhancedWithInstantReloadDexForDebug
                   |         |    --- :app:transformClassesWithInstantRunForDebug
                   |         |         --- :app:checkManifestChangesDebug (*)
                   |         --- :app:transformClassesWithInstantRunForDebug (*)
                   --- :app:transformClassesWithDexBuilderForDebug
                        +--- :app:preColdswapDebug (*)
                        --- :app:transformClassesWithInstantRunForDebug (*)
    
    (*) - details omitted (listed previously)
    解决办法:

    Disable instant run from settings

    Settings > search for instant run > uncheck "Enable Instant Run to hot swap code/resource changes on display"

    https://stackoverflow.com/questions/52779618/circular-dependency-between-the-following-tasks-in-gradle/53582242

    3:armeabi is no longer supported. Use armeabi-v7a.

    下载r16b后,修改ndk路径为r16b路径

    
    
  • 相关阅读:
    蒟蒻的sb对拍方法
    LuoguP5176 公约数 题解
    天守阁的地板 题解
    Crash的数字表格 / JZPTAB 题解
    于神之怒加强版 简要题解
    最小公倍数之和 题解
    莫比乌斯反演的计算
    YY的GCD 题解
    acwing 309装饰围栏 大致思路 (预览)
    错排问题(预览)
  • 原文地址:https://www.cnblogs.com/hgwang/p/10804972.html
Copyright © 2011-2022 走看看