android / android/camera-samples

CameraXBasic sample test failing

Đang mở
#369 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Kotlin
Star
5.5k
Fork
2.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Steps to reproduce:

1. Clone the repo
2. Open the CameraXBasic project
3. Run `./gradlew test`

Observe:

Build failure with the following output
```
> Task :app:testDebugUnitTest

com.android.example.cameraxbasic.MainInstrumentedTest > useAppContext FAILED
java.lang.NoClassDefFoundError at Shadows.java:2317
Caused by: java.lang.ClassNotFoundException at SandboxClassLoader.java:147
Caused by: java.lang.IllegalArgumentException at ClassReader.java:195

1 test completed, 1 failed

> Task :app:testDebugUnitTest FAILED

FAILURE: Build failed with an exception.

```

Environment info:
Android Studio Arctic Fox | 2020.3.1 Canary 12
Build #AI-203.7148.57.2031.7226969, built on March 22, 2021
Runtime version: 11.0.8+10-b944.6842174 x86_64
VM: OpenJDK 64-Bit Server VM by N/A
macOS 10.16
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry: external.system.auto.import.disabled=true, ide.images.show.chessboard=true
Non-Bundled Plugins: com.thoughtworks.gauge, com.developerphil.adbidea, com.google.mad-scorecard, org.intellij.plugins.markdown

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start in the CameraXBasic sample by running ./gradlew test and reproducing the app:testDebugUnitTest failure for MainInstrumentedTest.useAppContext. Trace the NoClassDefFoundError through the reported Shadows.java, SandboxClassLoader.java, and ClassReader.java locations; done means the test task completes successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
android, kotlin
Lĩnh vực
mobile, testing
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.