mozilla/glean

Execution failed for task ':app:gleanGenerateMetricsDocsForDebug'. > Glean documentation generation failed.

RasoolMohamed27 opened this issue · 7 comments

Please help to resolve the below build error in the Android project.

Task :app:gleanGenerateMetricsDocsForDebug

Glean SDK - generating docs for E:\Examples\fenix-master\fenix-master\app\metrics.yaml in E:\Examples\fenix-master\fenix-master/docs

Glean SDK - generating docs for E:\Examples\fenix-master\fenix-master\app\pings.yaml in E:\Examples\fenix-master\fenix-master/docs

**> Task :app:gleanGenerateMetricsDocsForDebug FAILED

Execution failed for task ':app:gleanGenerateMetricsDocsForDebug'.

Glean documentation generation failed.**

@RasoolMohamed27 thanks for reaching out.

Are you building from within Android Studio or from the command line? Can you provide more information about your environment?

@Dexterp37

I'm building from the Android Studio

@Dexterp37

I'm building from the Android Studio

@RasoolMohamed27 sometimes the IDE hides the culprit of the error. Can you try to build Fenix from the command line and see what the real error is?

@Dexterp37 Please find the screenshot from the command line.

image

image

image

image

This image seems to show the culprit: ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.. Looks like there's a problem with the PATH for Python?

@Dexterp37 Thank you!

I have fixed it with the help of below link.
https://stackoverflow.com/a/55642416/7758211

Glad it worked! I'm closing this issue. Please open a new one in case of other problems! :-)