小编Wel*_*gui的帖子

AAR 模块不适用于 gitlab CI

我有一个多模块项目,我需要为我的 aar 创建一个模块。

这是 gradle 文件:

configurations.maybeCreate("default")
artifacts.add("default", file('my-aar-1.0.0.aar'))
Run Code Online (Sandbox Code Playgroud)

还有另一个模块可以实现这个工件。当我./gradlew build直接从 android studio 运行时工作正常,但在我的 CI 脚本中我遇到了这个错误:

Install Android SDK Platform-Tools (revision: 34.0.5) finished.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':features:app:buildProdBetaPreBundle'.
> Could not resolve all task dependencies for configuration 
':features:app:prodBetaRuntimeClasspath'.
> Could not resolve project :myaar.
 Required by:
     project :app > project :module:secondmodule
  > No matching configuration of project :myaar was found. The consumer was configured to …
Run Code Online (Sandbox Code Playgroud)

continuous-integration android gradle gitlab aar

5
推荐指数
0
解决办法
118
查看次数

如何检测用户何时停止滚动 - Angular 5

我试图在用户滚动页面时隐藏 div,当停止滚动时我想显示 div。

我正在使用 @HostListener 但它只触发用户滚动页面。

  @HostListener('window:scroll', ['$event']) 
  onScroll(event) {
    this.scroll = true;
    setTimeout(() => {
      this.scroll = false;
    }, 2000);
  }
Run Code Online (Sandbox Code Playgroud)

html typescript angular

3
推荐指数
1
解决办法
2272
查看次数