GitToTheHub commented on PR #1896: URL: https://github.com/apache/cordova-android/pull/1896#issuecomment-4089837141
> I have encountered this error once before, but have not seen it since. I tried deleting and recreating the project multiple times. I also attempted opening the project without running any commands after cordova platform add, as well as running cordova prepare after adding the platform. I also got this error very rarely and the last time I used the latest cordova-android platform I didn't get this error any more. > I am not entirely sure if we want to run a full cordova build immediately after adding the platform. However, I believe the Gradle wrapper should be created at least after the platform is added. > > But for now, I believe the recommendation has always been to run cordova build after adding a platform. This makes the development more difficult because you always have to remember to make a `cordova build android` for the android platform if you want to open it in Android Studio. For iOS this is not needed, but for some plugins you have to make a `cordova prepare ios`. I find this is not very clean. The best would be if everything is setup when `cordova platform add` is called or `cordova plugin add`. `cordova build`, as I undertand, should make a runnable executable for the device or emulator, not a functionable project for the IDE. This is very inconsistent when `cordova platform add` creates a half functional Android Studio project but `cordova build` is required to create a full functional IDE project. I think this should be improved. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
