I copied mono.rs from the HelloComputeNDK sample and tried to use it in my my own project. I got the following error:

E/bcc     (26797): Unable to acquire the read lock for /data/data/com.example.android.rs.hellocomputendk/app/mono.o! (Permission denied)
E/bcc     (26797): Failed to remove file: /data/data/com.example.android.rs.hellocomputendk/app/mono.o.lock - Unknown error -1
有帮助吗?

解决方案

I needed to change the #pragma rs java_package_name(... to my own app's package name.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top