React-native link path incorrect

TLDR: Adding another folder like so java/co/AppNAme/AppName/ will fix your issue.

After updating to the latest react-native I had this issue too. Your android path contains your apps ID so com.test.app path should be android/app/src/main/java/com/test/app.

You've stated;

The path is actually incorrect java/co/AppNAme should be java/com/AppName.

This isn't correct as looking at your error message, its actually telling you where its expecting the file to be;

no such file or directory, open java/co/AppName/AppName/MainApplication.java

If you create another folder like so java/co/AppNAme/AppName/ it will fix your issue.