Android studio gradle output2/21/2023 So, what is an output-metadata.json? As explained here,įor older versions, what Android Studio did was generate a signed APK and put it in the “output” folder. It couldn’t really analyze it properly and hence this error occurred. So, Android studio was stunned at the speed at which these changes happened. output=D:\sample projects\sample_app\app\build\outputs\apk\debug\output-metadata.json So I went to the location shown in the error. Then again, will a change in the git branch can cause such an error? Probably not. I checked out from one git branch to another. When I thought about it carefully, I did change something. Because when the developer is troubled, the IDE will collapse. Then I realized there is no point in scrambling and letting the Android studio know I’m scared. Such as, clean the project, restart the IDE, rebuild it, etc. I tried many other known troubleshoot methods. It should because it is the equivalent of a task manager in windows. So what happened?Īs every other Android developer does, I tried the mighty ‘Invalidate Cache/Restart.’ Hoping that this will solve the issue. And I was pretty sure I didn’t make any code changes. It was running without any errors all the while. Invalid main APK outputs : apkType=MAIN, filtersData=, version=0, output=D:sample apkType=MAIN, filtersData=, version=0, output=D:\sample projects\sample_app\app\build\outputs\apk\debug\output-metadata.json) I was sipping my coffee, watching the Gradle building my app, and all of a sudden, an error popped up in the build window. Or maybe Android studio is still learning. Sometimes I feel like the world of Android development is funny.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |