我在尝试运行 Compose UI 测试时收到此错误
Could not find androidx.compose.ui:ui-test-junit4:.
Required by:
project :app
Search in build.gradle files
Run Code Online (Sandbox Code Playgroud)
还有谁有相同的问题吗 ?
我已将此行放入依赖项中
androidTestImplementation "androidx.compose.ui:ui-test-junit4"
Run Code Online (Sandbox Code Playgroud)
编辑:
/*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, …Run Code Online (Sandbox Code Playgroud)