我有一个多模块项目,我需要为我的 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) 我试图在用户滚动页面时隐藏 div,当停止滚动时我想显示 div。
我正在使用 @HostListener 但它只触发用户滚动页面。
@HostListener('window:scroll', ['$event'])
onScroll(event) {
this.scroll = true;
setTimeout(() => {
this.scroll = false;
}, 2000);
}
Run Code Online (Sandbox Code Playgroud)