Vedant-Gandhi / ESRGAN-Android-Demo

Apache License 2.0
8 stars 1 forks source link

Bug: Can't build&run #2

Open AndroidDeveloperLB opened 9 months ago

AndroidDeveloperLB commented 9 months ago

It shows me an error:

AGPBI: {"kind":"error","text":"The file name must end with .xml","sources":[{"file":"C:\\Users\\User\\Desktop\\ESRGAN-Android-Demo\\app\\src\\main\\res\\Assets\\esrganmodel.tflite"}],"tool":"Resource and asset merger"}

The file name must end with .xml

Why is there "Assets" folder in "res"? It's not supposed to be there, no?

image

My Application.zip

Vedant-Gandhi commented 9 months ago

@AndroidDeveloperLB Try moving the esrganmodel.tflite file out of res. The new path will be - app/src/main/assets/esrganmodel.tflite

AndroidDeveloperLB commented 9 months ago

@Vedant-Gandhi Now it has a different build issue:

Execution failed for task ':app:processDebugMainManifest'.
> Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @16cea5dd

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

test.zip