New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:: Unknown Directory structure, both java & kotlin files not found. #14
Comments
Same here, any ideas? |
@RastislavMirek please do share your project directory structure for android dir. |
can you share gradle.build file as well? in app dir It seems like you updated the package ID in gradle.build manually and didn't change the directory structure of MainActivity. |
Here it is. There is not package in that gradle, only application ID, which I thought is a different thing. In any case, if this is the problem then I highly suggest that the plugin either handles that gracefully or at least prints a correct error message, saying that "these 2 must match", not that "kotlin / java files not found".
|
Yes, that's the issue. application-id is the package name. these two are the same things. The package cannot handle that gracefully because it can lose changes someone has made to MainActivity class. Also, this is how the plugin finds the correct path to the file. I'll test other scenarios as well to handle the issue gracefully. I'll post the update here on this issue. I'm not closing the issue yet. |
Great, thank you. Yes, after changing it back to the original name matching the original package structure, the rename works. A good error message will help a lot of people (even this discussion will help many). I understand the technical difficulties but if you want to improve user experience then ideally, when the new package name is the same as the name already changed in Just my 5 cents. |
i have solved by change the directory name where the MainActivity.kt is placed for example
so if the error is appears, you just need create a new folder by name of your package
hope this help you if you didnt change the folder name, you cant run on android ( i have waiting until 12 hours just waiting on installing ) , but i can run on IOS , so after i try above step , just 3 - 5 second my apps was installed . |
this problem is solved for me by these steps: the most important note is in MainActivity.kt that you have to notice: |
Changed the mechanism and now it'll work fine irrespective of the directory structure. Fix is LIVE |
Old Package Name: com.mithila.deliveryapp
Updating build.gradle File
Updating Main Manifest file
Updating Debug Manifest file
Updating Profile Manifest file
ERROR:: Unknown Directory structure, both java & kotlin files not found.
Get this log in terminal.
The text was updated successfully, but these errors were encountered: