android studio 配置相關問題

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

下午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 1app

解決辦法:less

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:post

  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.gradle

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

 

 

2:循環依FAILURE: Build failed with an exception.spa


解決辦法:
* 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 settingscode

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

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路徑blog

相關文章
相關標籤/搜索