Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo

简介: Couldn‘t get post build model. Module:UpdateService_0804.main Variant: debugOpen logcat panel fo

原因:


在发射前或发射前复制Gradle-awareMake-in的步骤:


  1. 为ExampleUnitTest测试类创建一个新的Android JUnit运行配置:运行->编辑配置。单击窗口top-left中的“+”按钮。选择“Android JUnit”或“JUnit”。使用模块"PROJECT_NAME.app.unitTest"的classpath(-cp)。类“.ExampleUnitTest”。
  2. 运行newly-created运行配置
  3. 退出IDE
  4. Re-launchIDE,允许Gradle同步完成
  5. 清理项目(构建->清理项目)
  6. 再次运行ExampleUnitTest运行配置


对我来说,以上步骤是在启动前部分生成Gradle-awareMake选项。

解决方法


目录
相关文章
|
4月前
|
C++ Windows
vs2019 This application failed to start because it could not find or load the QT platform plugin
这篇文章介绍了在VS2019中解决QT程序运行时出现的“无法找到或加载QT平台插件”错误的步骤,通过将必要的DLL文件和插件目录复制到项目解决方案中解决了问题。
|
5月前
|
XML 移动开发 数据格式
【Python】已解决:bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: html5
【Python】已解决:bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: html5
484 1
|
6月前
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
No rule to make target ‘.xxxxxxxx‘, needed by ‘debug/xxxx.cpp‘. Stop.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
|
7月前
|
C语言 计算机视觉
opencv 编译objects.a(vs_version.rc.obj)‘ is incompatible with i386:x86-64 output
opencv 编译objects.a(vs_version.rc.obj)‘ is incompatible with i386:x86-64 output
57 0
|
JavaScript Cloud Native Go
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
Error: Cannot find module ‘webpack/bin/config-yargs‘ at Function.Module._resolveFilename (intern
83 0
913 error Component name “home“ should always be multi-word vuemulti-word-component-names
913 error Component name “home“ should always be multi-word vuemulti-word-component-names
117 0
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘
Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘
104 0
Could not find com.serenegiant:common:4.1.1
Could not find com.serenegiant:common:4.1.1
260 0
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
Perhaps you should add the directory containing libpcre.pc to the PKG_CONFIG_PATH
163 0