问:
How to extract android jetpack compose testTags in appium?
My team is looking to do automated functional testing.
Once our developers started using jetpack compose, we lost most of our selectors.
I try to extract the testTags provided by compose.

here is th appium2 capabilities, built on the Raj Varlma's medium article - Automating Android Jetpack Compose using Appium using emulated pixel3A with api 30 in Appium Inspector :

```<code>{
  "platformName": "Android",
  "appium:app": "/Users/j.faux/Desktop/mobileApps/android/noFlippr.apk",
  "appium:device": "emulator-5554",
  "appium:platformVersion": "11",
  "appium:automationName": "Espresso",
  "appium:espressoBuildConfig": "{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\",  \"androidx.fragment:fragment:1.3.6\", \"androidx.activity:activity-compose:1.3.1\"]}",
  "appium:skipUnlock": true,
  "appium:fullReset": false,
  "appium:forceEspressoRebuild": true,
  "appium:showGradleLog": true
}
</code>```

Here's a sample of the xml generated code from UIautomator2:

```<code><androidx.compose.ui.platform.ComposeView index="0" package="sport.android.poufpouf.fr.qa" class="androidx.compose.ui.platform.ComposeView" text="" resource-id="sport.android.poufpouf.fr.qa:id/compose_view" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,124][1080,271]" displayed="true">
                  <android.view.View index="0" package="sport.android.poufpouf.fr.qa" class="android.view.View" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,124][1080,271]" displayed="true">
                    <android.view.View index="0" package="sport.android.poufpouf.fr.qa" class="android.view.View" text="" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[552,134][678,260]" displayed="true">
</code>```

I cannot run the apk running the above conf.
Espresso seems to achieve its build.

Here are appium logs

```➜  ~ appium server -p 9000 -a 127.0.0.1 -pa /wd/hub
...
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[AndroidDriver] Looking for a device with Android '11.0.0'
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 11
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk'
[debug] [ADB] Checking app cert for /Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk
[ADB] Using 'apksigner.jar' from '/Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Users/j.faux/homebrew/Cellar/openjdk\@11/11.0.17/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar verify --print-certs /Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] sha256 hash did match for 'noFlippr2.apk'
[ADB] '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk' is signed with the default certificate
[EspressoDriver@dbfa (c1141684)] EspressoDriver version: 2.13.8
[debug] [ADB] Current device property 'ro.build.version.sdk': 30
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 11
[debug] [ADB] Device API level: 30
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[ADB] Package name: 'sport.android.poufpouf.com.qa'
[ADB] Main activity name: 'reg.poufpouf.sport.features.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: sport.android.poufpouf.com.qa/reg.poufpouf.sport.features.splash.SplashActivity
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('4.2.4' >= '4.2.4')
[debug] [ADB] There is no need to install/upgrade '/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [Logcat] Starting logs capture with command: /Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global animator_duration_scale'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global transition_animation_scale'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global window_animation_scale'
[debug] [EspressoDriver@dbfa (c1141684)] Forwarding Espresso Server port 6791 to 8300
[debug] [ADB] Forwarding system: 8300 to device: 6791
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8300 tcp:6791'
[debug] [EspressoDriver@dbfa (c1141684)] 'skipUnlock' capability set, so skipping device unlock
[debug] [ADB] Getting install status for sport.android.poufpouf.com.qa
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] 'sport.android.poufpouf.com.qa' is installed
[debug] [ADB] Getting package info for 'sport.android.poufpouf.com.qa'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] The version name of the installed 'sport.android.poufpouf.com.qa' is greater or equal to the application version name ('6.0.5' >= '6.0.5')
[debug] [ADB] There is no need to install/upgrade '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk'
[AndroidDriver] Performing fast reset on 'sport.android.poufpouf.com.qa'
[debug] [ADB] Getting install status for sport.android.poufpouf.com.qa
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] 'sport.android.poufpouf.com.qa' is installed
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop sport.android.poufpouf.com.qa'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear sport.android.poufpouf.com.qa'
[debug] [AndroidDriver] Performed fast reset on the installed 'sport.android.poufpouf.com.qa' application (stop and clear)
[debug] [EspressoDriver@dbfa (c1141684)] 'forceEspressoRebuild' capability is enabled
[debug] [EspressoDriver@dbfa (c1141684)] Deleting the obsolete Espresso server package '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[EspressoDriver@dbfa (c1141684)] Loading the build configuration from 'espressoBuildConfig' capability
[EspressoDriver@dbfa (c1141684)] Building espresso server in '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554'
[debug] [EspressoDriver@dbfa (c1141684)] The build folder root could be customized by changing the 'tmpDir' capability
[debug] [EspressoDriver@dbfa (c1141684)] Copying espresso server template from ('/Users/j.faux/.appium/node_modules/appium-espresso-driver/espresso-server' to '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554')
[debug] [Support] Traversed 52 directories and 281 files in 164ms
[debug] [EspressoDriver@dbfa (c1141684)] Bulding espresso server
[EspressoDriver@dbfa (c1141684)] Adding the following additionalAndroidTestDependencies to build.gradle.kts: androidTestImplementation("androidx.lifecycle:lifecycle-extensions:2.2.0"),androidTestImplementation("androidx.activity:activity:1.3.1"),androidTestImplementation("androidx.fragment:fragment:1.3.6"),androidTestImplementation("androidx.activity:activity-compose:1.3.1")
[debug] [EspressoDriver@dbfa (c1141684)] Beginning build with command '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554/gradlew -PappiumTargetPackage=sport.android.poufpouf.com.qa app:assembleAndroidTest' in directory '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554'
[debug] [EspressoDriver@dbfa (c1141684)] Output from Gradle will be logged. To change this, use 'showGradleLog' desired capability
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preBuild UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preDebugBuild UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAidl NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugRenderscript NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugBuildConfig FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAarMetadata FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugResValues FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugResources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:createDebugCompatibleScreenManifests FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:extractDeepLinksDebug FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugMainManifest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugManifest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugManifestForPackage FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugKotlin FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebug FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugJavaWithJavac FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:bundleDebugClasses FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preDebugAndroidTestBuild SKIPPED
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestAidl NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestManifest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestBuildConfig FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestAarMetadata FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestRenderscript NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResValues FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestKotlin FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestJavaWithJavac FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestSources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestShaders FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestShaders NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestAssets UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestAssets FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compressDebugAndroidTestAssets FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestJavaRes NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJniLibFolders FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestNativeLibs NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestDuplicateClasses FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:desugarDebugAndroidTestFileDependencies FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeExtDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeLibDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:dexBuilderDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeProjectDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:validateSigningDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:writeDebugAndroidTestSigningConfigVersions FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJavaResource
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:packageDebugAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:assembleDebugAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:assembleAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT]
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] BUILD SUCCESSFUL in 3s
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] 37 actionable tasks: 3 executed, 34 from cache
[debug] [EspressoDriver@dbfa (c1141684)] Copying built apk from '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk' to '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[debug] [ADB] Checking app cert for /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk
[debug] [ADB] Starting apksigner: /Users/j.faux/homebrew/Cellar/openjdk\@11/11.0.17/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar verify --print-certs /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [ADB] Signer #1 certificate SHA-256 digest: 55634d7b56020fd4cd3c4d8d9191f62887748be325c4210d4911a957b6ae5e08
[debug] [ADB] Signer #1 certificate SHA-1 digest: b1d36cbdc548036ee0070a5a857f96fae6bcd58e
[debug] [ADB] Signer #1 certificate MD5 digest: 733bc344585729cdeac947b1753891ee
[debug] [ADB]
[ADB] '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is signed with a non-default certificate
[ADB] Using 'zipalign' from '/Users/j.faux/Library/Android/sdk/build-tools/33.0.1/zipalign'
[debug] [ADB] /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is already zip-aligned. Doing nothing
[debug] [ADB] Signing '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' with default cert
[debug] [ADB] Uninstalling io.appium.espressoserver.test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is installed
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.espressoserver.test'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 uninstall io.appium.espressoserver.test'
[debug] [ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success
[ADB] io.appium.espressoserver.test was successfully uninstalled
[EspressoDriver@dbfa (c1141684)] Uninstalled the obsolete Espresso server package from the device under test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is not installed
[debug] [ADB] App '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is not installed
[EspressoDriver@dbfa (c1141684)] Installing Espresso Test Server apk from the target device (path: '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk')
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 help'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 features'
[ADB] The application at '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[ADB] The installation of 'io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' took 166ms
[debug] [ADB] Install command stdout: Serving...
[debug] [ADB] Performing Incremental Install
[debug] [ADB] Success
[debug] [ADB] Install command complete in 153 ms
[EspressoDriver@dbfa (c1141684)] Installed Espresso Test Server apk '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' (pkg: 'io.appium.espressoserver.test')
[ADB] Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist
[debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]]
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;'
[debug] [EspressoDriver@dbfa (c1141684)] Performing cleanup of automation leftovers
[debug] [EspressoDriver@dbfa (c1141684)] No obsolete sessions have been detected (socket hang up)
[EspressoDriver@dbfa (c1141684)] Starting Espresso Server v2.13.8 with cmd: adb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","debug",false,"-e","disableAnalytics",true,"io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"]
[EspressoDriver@dbfa (c1141684)] Waiting up to 45000ms for Espresso server to be online
[debug] [EspressoDriver@dbfa (c1141684)] Matched '/status' to command name 'getStatus'
[debug] [EspressoDriver@dbfa (c1141684)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body
[EspressoDriver@dbfa (c1141684)] socket hang up
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=21062, uid=21062 not allowed because package io.appium.espressoserver.test does not have a signature matching the target sport.android.poufpouf.com.qa
[debug] [EspressoDriver@dbfa (c1141684)] INSTRUMENTATION_STATUS: id=ActivityManagerService
[debug] [EspressoDriver@dbfa (c1141684)] INSTRUMENTATION_STATUS_CODE: -1
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=21062, uid=21062 not allowed because package io.appium.espressoserver.test does not have a signature matching the target sport.android.poufpouf.com.qa
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Parcel.createException(Parcel.java:2357)
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] at android.os.Parcel.readException(Parcel.java:2340)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Parcel.readException(Parcel.java:2282)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.app.IActivityManager$Stub$Proxy.startInstrumentation(IActivityManager.java:6090)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Instrument.run(Instrument.java:517)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.runInstrument(Am.java:202)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.onRun(Am.java:80)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.BaseCommand.run(BaseCommand.java:60)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.main(Am.java:50)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
[debug] [EspressoDriver@dbfa (c1141684)] Caused by: android.os.RemoteException: Remote stack trace:
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.server.am.ActivityManagerService.startInstrumentation(ActivityManagerService.java:16921)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2655)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2883)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Binder.execTransactInternal(Binder.java:1154)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Binder.execTransact(Binder.java:1123)
[EspressoDriver@dbfa (c1141684)] Instrumentation process exited with code 1 from signal null
[EspressoDriver@dbfa (c1141684)] Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details
[debug] [EspressoDriver@dbfa (c1141684)] Deleting espresso session
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys activity services io.appium.settings/.recorder.RecorderService'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop sport.android.poufpouf.com.qa'
[debug] [Logcat] Stopping logcat capture
[EspressoDriver@dbfa (c1141684)] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
[debug] [ADB] Removing forwarded port socket connection: 8300
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:8300'
[debug] [AppiumDriver@f569] Event 'newSessionStarted' logged at 1672050778899 (11:32:58 GMT+0100 (Central European Standard Time))
[debug] [AppiumDriver@f569] Encountered internal error running command: A new session could not be created. Details: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[debug] [AppiumDriver@f569] Error: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[debug] [AppiumDriver@f569]     at Object.errorAndThrow (/Users/j.faux/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:115:34)
[debug] [AppiumDriver@f569]     at condFn (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:287:20)
[debug] [AppiumDriver@f569]     at spin (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:221:26)
[debug] [AppiumDriver@f569]     at spin (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:231:20)
[debug] [AppiumDriver@f569]     at waitForCondition (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:238:10)
[debug] [AppiumDriver@f569]     at EspressoRunner.startSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:281:7)
[debug] [AppiumDriver@f569]     at EspressoDriver.startEspressoSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/driver.js:444:5)
[debug] [AppiumDriver@f569]     at EspressoDriver.createSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/driver.js:224:7)
[debug] [AppiumDriver@f569]     at AppiumDriver.createSession (/Users/j.faux/homebrew/lib/node_modules/appium/lib/appium.js:336:35)
[HTTP] <-- POST /wd/hub/session 500 8111 ms - 1689
```

What am I missing ?

Body:
My team is looking to do automated functional testing.
Once our developers started using jetpack compose, we lost most of our selectors.
I try to extract the testTags provided by compose.

here is th appium2 capabilities, built on the Raj Varlma's medium article - Automating Android Jetpack Compose using Appium using emulated pixel3A with api 30 in Appium Inspector :

{
  "platformName": "Android",
  "appium:app": "/Users/j.faux/Desktop/mobileApps/android/noFlippr.apk",
  "appium:device": "emulator-5554",
  "appium:platformVersion": "11",
  "appium:automationName": "Espresso",
  "appium:espressoBuildConfig": "{\"additionalAndroidTestDependencies\": [\"androidx.lifecycle:lifecycle-extensions:2.2.0\", \"androidx.activity:activity:1.3.1\",  \"androidx.fragment:fragment:1.3.6\", \"androidx.activity:activity-compose:1.3.1\"]}",
  "appium:skipUnlock": true,
  "appium:fullReset": false,
  "appium:forceEspressoRebuild": true,
  "appium:showGradleLog": true
}

Here's a sample of the xml generated code from UIautomator2:

<androidx.compose.ui.platform.ComposeView index="0" package="sport.android.poufpouf.fr.qa" class="androidx.compose.ui.platform.ComposeView" text="" resource-id="sport.android.poufpouf.fr.qa:id/compose_view" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,124][1080,271]" displayed="true">
                  <android.view.View index="0" package="sport.android.poufpouf.fr.qa" class="android.view.View" text="" checkable="false" checked="false" clickable="false" enabled="true" focusable="false" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[0,124][1080,271]" displayed="true">
                    <android.view.View index="0" package="sport.android.poufpouf.fr.qa" class="android.view.View" text="" checkable="false" checked="false" clickable="true" enabled="true" focusable="true" focused="false" long-clickable="false" password="false" scrollable="false" selected="false" bounds="[552,134][678,260]" displayed="true">

I cannot run the apk running the above conf.
Espresso seems to achieve its build.

Here are appium logs

➜  ~ appium server -p 9000 -a 127.0.0.1 -pa /wd/hub
...
[debug] [ADB] Getting connected devices
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[AndroidDriver] Looking for a device with Android '11.0.0'
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 11
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
[debug] [ADB] Setting device id to emulator-5554
[BaseDriver] Using local app '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk'
[debug] [ADB] Checking app cert for /Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk
[ADB] Using 'apksigner.jar' from '/Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Users/j.faux/homebrew/Cellar/openjdk\@11/11.0.17/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar verify --print-certs /Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] sha256 hash did match for 'noFlippr2.apk'
[ADB] '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk' is signed with the default certificate
[EspressoDriver@dbfa (c1141684)] EspressoDriver version: 2.13.8
[debug] [ADB] Current device property 'ro.build.version.sdk': 30
[ADB] Getting device platform version
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 11
[debug] [ADB] Device API level: 30
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''
[ADB] Package name: 'sport.android.poufpouf.com.qa'
[ADB] Main activity name: 'reg.poufpouf.sport.features.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: sport.android.poufpouf.com.qa/reg.poufpouf.sport.features.splash.SplashActivity
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [ADB] 'io.appium.settings' is installed
[debug] [ADB] Getting package info for 'io.appium.settings'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'
[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('4.2.4' >= '4.2.4')
[debug] [ADB] There is no need to install/upgrade '/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [Logcat] Starting logs capture with command: /Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 logcat -v threadtime
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global animator_duration_scale'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global transition_animation_scale'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings get global window_animation_scale'
[debug] [EspressoDriver@dbfa (c1141684)] Forwarding Espresso Server port 6791 to 8300
[debug] [ADB] Forwarding system: 8300 to device: 6791
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp:8300 tcp:6791'
[debug] [EspressoDriver@dbfa (c1141684)] 'skipUnlock' capability set, so skipping device unlock
[debug] [ADB] Getting install status for sport.android.poufpouf.com.qa
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] 'sport.android.poufpouf.com.qa' is installed
[debug] [ADB] Getting package info for 'sport.android.poufpouf.com.qa'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] The version name of the installed 'sport.android.poufpouf.com.qa' is greater or equal to the application version name ('6.0.5' >= '6.0.5')
[debug] [ADB] There is no need to install/upgrade '/Users/j.faux/Desktop/mobileApps/android/appiumCompose/noFlippr2.apk'
[AndroidDriver] Performing fast reset on 'sport.android.poufpouf.com.qa'
[debug] [ADB] Getting install status for sport.android.poufpouf.com.qa
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package sport.android.poufpouf.com.qa'
[debug] [ADB] 'sport.android.poufpouf.com.qa' is installed
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop sport.android.poufpouf.com.qa'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear sport.android.poufpouf.com.qa'
[debug] [AndroidDriver] Performed fast reset on the installed 'sport.android.poufpouf.com.qa' application (stop and clear)
[debug] [EspressoDriver@dbfa (c1141684)] 'forceEspressoRebuild' capability is enabled
[debug] [EspressoDriver@dbfa (c1141684)] Deleting the obsolete Espresso server package '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[EspressoDriver@dbfa (c1141684)] Loading the build configuration from 'espressoBuildConfig' capability
[EspressoDriver@dbfa (c1141684)] Building espresso server in '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554'
[debug] [EspressoDriver@dbfa (c1141684)] The build folder root could be customized by changing the 'tmpDir' capability
[debug] [EspressoDriver@dbfa (c1141684)] Copying espresso server template from ('/Users/j.faux/.appium/node_modules/appium-espresso-driver/espresso-server' to '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554')
[debug] [Support] Traversed 52 directories and 281 files in 164ms
[debug] [EspressoDriver@dbfa (c1141684)] Bulding espresso server
[EspressoDriver@dbfa (c1141684)] Adding the following additionalAndroidTestDependencies to build.gradle.kts: androidTestImplementation("androidx.lifecycle:lifecycle-extensions:2.2.0"),androidTestImplementation("androidx.activity:activity:1.3.1"),androidTestImplementation("androidx.fragment:fragment:1.3.6"),androidTestImplementation("androidx.activity:activity-compose:1.3.1")
[debug] [EspressoDriver@dbfa (c1141684)] Beginning build with command '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554/gradlew -PappiumTargetPackage=sport.android.poufpouf.com.qa app:assembleAndroidTest' in directory '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554'
[debug] [EspressoDriver@dbfa (c1141684)] Output from Gradle will be logged. To change this, use 'showGradleLog' desired capability
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preBuild UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preDebugBuild UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAidl NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugRenderscript NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugBuildConfig FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAarMetadata FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugResValues FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugResources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:createDebugCompatibleScreenManifests FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:extractDeepLinksDebug FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugMainManifest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugManifest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugManifestForPackage FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugKotlin FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebug FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugJavaWithJavac FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:bundleDebugClasses FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:preDebugAndroidTestBuild SKIPPED
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestAidl NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestManifest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestBuildConfig FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestAarMetadata FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestRenderscript NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResValues FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestResources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestResources FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestKotlin FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:javaPreCompileDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestJavaWithJavac FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestSources UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestShaders FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compileDebugAndroidTestShaders NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:generateDebugAndroidTestAssets UP-TO-DATE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestAssets FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:compressDebugAndroidTestAssets FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:processDebugAndroidTestJavaRes NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJniLibFolders FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestNativeLibs NO-SOURCE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:checkDebugAndroidTestDuplicateClasses FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:desugarDebugAndroidTestFileDependencies FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeExtDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeLibDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:dexBuilderDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeProjectDexDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:validateSigningDebugAndroidTest FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:writeDebugAndroidTestSigningConfigVersions FROM-CACHE
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:mergeDebugAndroidTestJavaResource
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:packageDebugAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:assembleDebugAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] > Task :app:assembleAndroidTest
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT]
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] BUILD SUCCESSFUL in 3s
[EspressoDriver@dbfa (c1141684)] [Gradle] [STDOUT] 37 actionable tasks: 3 executed, 34 from cache
[debug] [EspressoDriver@dbfa (c1141684)] Copying built apk from '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/espresso-server-emulator-5554/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk' to '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[debug] [ADB] Checking app cert for /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk
[debug] [ADB] Starting apksigner: /Users/j.faux/homebrew/Cellar/openjdk\@11/11.0.17/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/j.faux/Library/Android/sdk/build-tools/33.0.1/lib/apksigner.jar verify --print-certs /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk
[debug] [ADB] apksigner stdout: Signer #1 certificate DN: C=US, O=Android, CN=Android Debug
[debug] [ADB] Signer #1 certificate SHA-256 digest: 55634d7b56020fd4cd3c4d8d9191f62887748be325c4210d4911a957b6ae5e08
[debug] [ADB] Signer #1 certificate SHA-1 digest: b1d36cbdc548036ee0070a5a857f96fae6bcd58e
[debug] [ADB] Signer #1 certificate MD5 digest: 733bc344585729cdeac947b1753891ee
[debug] [ADB]
[ADB] '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is signed with a non-default certificate
[ADB] Using 'zipalign' from '/Users/j.faux/Library/Android/sdk/build-tools/33.0.1/zipalign'
[debug] [ADB] /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is already zip-aligned. Doing nothing
[debug] [ADB] Signing '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' with default cert
[debug] [ADB] Uninstalling io.appium.espressoserver.test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is installed
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.espressoserver.test'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 uninstall io.appium.espressoserver.test'
[debug] [ADB] 'adb uninstall io.appium.espressoserver.test' command output: Success
[ADB] io.appium.espressoserver.test was successfully uninstalled
[EspressoDriver@dbfa (c1141684)] Uninstalled the obsolete Espresso server package from the device under test
[debug] [ADB] Getting install status for io.appium.espressoserver.test
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.espressoserver.test'
[debug] [ADB] 'io.appium.espressoserver.test' is not installed
[debug] [ADB] App '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' is not installed
[EspressoDriver@dbfa (c1141684)] Installing Espresso Test Server apk from the target device (path: '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk')
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 help'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 features'
[ADB] The application at '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install /var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk'
[ADB] The installation of 'io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' took 166ms
[debug] [ADB] Install command stdout: Serving...
[debug] [ADB] Performing Incremental Install
[debug] [ADB] Success
[debug] [ADB] Install command complete in 153 ms
[EspressoDriver@dbfa (c1141684)] Installed Espresso Test Server apk '/var/folders/zk/cnc6rrjd067dr2bjwx6s2y1w0000gp/T/io.appium.espressoserver.test_2.13.8_sport.android.poufpouf.com.qa_emulator-5554.apk' (pkg: 'io.appium.espressoserver.test')
[ADB] Adding packages ["io.appium.settings","io.appium.espressoserver.test"] to Doze whitelist
[debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.espressoserver.test",";"]]
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.espressoserver.test ;'
[debug] [EspressoDriver@dbfa (c1141684)] Performing cleanup of automation leftovers
[debug] [EspressoDriver@dbfa (c1141684)] No obsolete sessions have been detected (socket hang up)
[EspressoDriver@dbfa (c1141684)] Starting Espresso Server v2.13.8 with cmd: adb shell am instrument -w -e debug false -e disableAnalytics true io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","emulator-5554","shell","am","instrument","-w","-e","debug",false,"-e","disableAnalytics",true,"io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner"]
[EspressoDriver@dbfa (c1141684)] Waiting up to 45000ms for Espresso server to be online
[debug] [EspressoDriver@dbfa (c1141684)] Matched '/status' to command name 'getStatus'
[debug] [EspressoDriver@dbfa (c1141684)] Proxying [GET /status] to [GET http://127.0.0.1:8300/status] with no body
[EspressoDriver@dbfa (c1141684)] socket hang up
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] INSTRUMENTATION_STATUS: Error=Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=21062, uid=21062 not allowed because package io.appium.espressoserver.test does not have a signature matching the target sport.android.poufpouf.com.qa
[debug] [EspressoDriver@dbfa (c1141684)] INSTRUMENTATION_STATUS: id=ActivityManagerService
[debug] [EspressoDriver@dbfa (c1141684)] INSTRUMENTATION_STATUS_CODE: -1
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] java.lang.SecurityException: Permission Denial: starting instrumentation ComponentInfo{io.appium.espressoserver.test/androidx.test.runner.AndroidJUnitRunner} from pid=21062, uid=21062 not allowed because package io.appium.espressoserver.test does not have a signature matching the target sport.android.poufpouf.com.qa
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] at android.os.Parcel.createExceptionOrNull(Parcel.java:2373)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Parcel.createException(Parcel.java:2357)
[debug] [EspressoDriver@dbfa (c1141684)] [Instrumentation] at android.os.Parcel.readException(Parcel.java:2340)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Parcel.readException(Parcel.java:2282)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.app.IActivityManager$Stub$Proxy.startInstrumentation(IActivityManager.java:6090)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Instrument.run(Instrument.java:517)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.runInstrument(Am.java:202)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.onRun(Am.java:80)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.BaseCommand.run(BaseCommand.java:60)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.commands.am.Am.main(Am.java:50)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:399)
[debug] [EspressoDriver@dbfa (c1141684)] Caused by: android.os.RemoteException: Remote stack trace:
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.server.am.ActivityManagerService.startInstrumentation(ActivityManagerService.java:16921)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2655)
[debug] [EspressoDriver@dbfa (c1141684)]    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2883)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Binder.execTransactInternal(Binder.java:1154)
[debug] [EspressoDriver@dbfa (c1141684)]    at android.os.Binder.execTransact(Binder.java:1123)
[EspressoDriver@dbfa (c1141684)] Instrumentation process exited with code 1 from signal null
[EspressoDriver@dbfa (c1141684)] Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details
[debug] [EspressoDriver@dbfa (c1141684)] Deleting espresso session
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys activity services io.appium.settings/.recorder.RecorderService'
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop sport.android.poufpouf.com.qa'
[debug] [Logcat] Stopping logcat capture
[EspressoDriver@dbfa (c1141684)] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''
[debug] [ADB] Removing forwarded port socket connection: 8300
[debug] [ADB] Running '/Users/j.faux/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp:8300'
[debug] [AppiumDriver@f569] Event 'newSessionStarted' logged at 1672050778899 (11:32:58 GMT+0100 (Central European Standard Time))
[debug] [AppiumDriver@f569] Encountered internal error running command: A new session could not be created. Details: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[debug] [AppiumDriver@f569] Error: Espresso server process has been unexpectedly terminated. Check the Appium server log and the logcat output for more details. Check https://github.com/appium/appium-espresso-driver#troubleshooting regarding advanced session startup troubleshooting.
[debug] [AppiumDriver@f569]     at Object.errorAndThrow (/Users/j.faux/homebrew/lib/node_modules/appium/node_modules/@appium/support/lib/logging.js:115:34)
[debug] [AppiumDriver@f569]     at condFn (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:287:20)
[debug] [AppiumDriver@f569]     at spin (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:221:26)
[debug] [AppiumDriver@f569]     at spin (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:231:20)
[debug] [AppiumDriver@f569]     at waitForCondition (/Users/j.faux/.appium/node_modules/appium-espresso-driver/node_modules/asyncbox/lib/asyncbox.js:238:10)
[debug] [AppiumDriver@f569]     at EspressoRunner.startSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/espresso-runner.js:281:7)
[debug] [AppiumDriver@f569]     at EspressoDriver.startEspressoSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/driver.js:444:5)
[debug] [AppiumDriver@f569]     at EspressoDriver.createSession (/Users/j.faux/.appium/node_modules/appium-espresso-driver/lib/driver.js:224:7)
[debug] [AppiumDriver@f569]     at AppiumDriver.createSession (/Users/j.faux/homebrew/lib/node_modules/appium/lib/appium.js:336:35)
[HTTP] <-- POST /wd/hub/session 500 8111 ms - 1689

What am I missing ?


来源: stackexchange

问:
Getting Error "Can't determine type for tag '<tech-list> <tech>android.nfc.tech.NfcA</tech>..."
I get the following error in android studio

```<code>Can't determine type for tag '<tech-list>
        <tech>android.nfc.tech.NfcA</tech>
        <tech>android.nfc.tech.NfcB</tech>
        <tech>android.nfc.tech.NfcF</tech>
        <tech>android.nfc.tech.IsoDep</tech>
        <tech>android.nfc.tech.NfcV</tech>
        <tech>android.nfc.tech.Ndef</tech>
        <tech>android.nfc.tech.NdefFormatable</tech>
        <tech>android.nfc.tech.MifareClassic</tech>
        <tech>android.nfc.tech.MifareUltralight</tech>
    </tech-list>'
Can't determine type for tag '<tech-list>
        <tech>android.nfc.tech.NfcA</tech>
        <tech>android.nfc.tech.NfcB</tech>
        <tech>android.nfc.tech.NfcF</tech>
        <tech>android.nfc.tech.IsoDep</tech>
        <tech>android.nfc.tech.NfcV</tech>
        <tech>android.nfc.tech.Ndef</tech>
        <tech>android.nfc.tech.NdefFormatable</tech>
        <tech>android.nfc.tech.MifareClassic</tech>
        <tech>android.nfc.tech.MifareUltralight</tech>
    </tech-list>'

</code>```

File: app/build/generated/res/resValues/debug/XML/techlist.xml

I am unsure of why i get the error. If you need any more information please write a comment

Nothing, as I do not know how to fix, or what to try

ContentLicense: CC BY-SA 4.0

Body:
I get the following error in android studio

Can't determine type for tag '<tech-list>
        <tech>android.nfc.tech.NfcA</tech>
        <tech>android.nfc.tech.NfcB</tech>
        <tech>android.nfc.tech.NfcF</tech>
        <tech>android.nfc.tech.IsoDep</tech>
        <tech>android.nfc.tech.NfcV</tech>
        <tech>android.nfc.tech.Ndef</tech>
        <tech>android.nfc.tech.NdefFormatable</tech>
        <tech>android.nfc.tech.MifareClassic</tech>
        <tech>android.nfc.tech.MifareUltralight</tech>
    </tech-list>'
Can't determine type for tag '<tech-list>
        <tech>android.nfc.tech.NfcA</tech>
        <tech>android.nfc.tech.NfcB</tech>
        <tech>android.nfc.tech.NfcF</tech>
        <tech>android.nfc.tech.IsoDep</tech>
        <tech>android.nfc.tech.NfcV</tech>
        <tech>android.nfc.tech.Ndef</tech>
        <tech>android.nfc.tech.NdefFormatable</tech>
        <tech>android.nfc.tech.MifareClassic</tech>
        <tech>android.nfc.tech.MifareUltralight</tech>
    </tech-list>'

File: app/build/generated/res/resValues/debug/XML/techlist.xml

I am unsure of why i get the error. If you need any more information please write a comment

Nothing, as I do not know how to fix, or what to try


问:
System/Protocol for sending data that deals with loss connection
This is not very much a coding question, but we are currently working at my company on a tool for processing data. This works this way :

Local computer captures data from sensors every second and send it to cloud influxdb (time series-based database) on the fly

Cloud computer retrieves data from cloud influxdb and preprocess it

... (this part is not important here)

The problem is that the internet connection on the local computer is instable. We the current infrastructure, we loose the data when the connection drops (which is very inconvenient for us). We would like to never loose the data even when the connection drops while keeping the real-time streaming data sent to influxdb (we could store data on disk locally beforehand and then sending it to influxdb but we loose the real time here)

We wanted to use Kafka or MQTM for this purpose but it does not seem to have good capabilities of handling connection loss (AFAIK)

Is there a protocol/system which can handle this problem ?

EDIT : we do not need high throughput as we have only 1 data per second


问:
How can I extract upload progress from API?
I am using NextJS API to upload a video to Vimeo. In its own function it returns the progress like this (at the last callback):

```<code>client.upload(
      file_name,
      {
        name: 'Untitled',
        description: 'The description goes here.'
      },
      function (uri) {
        client.request(
          uri + '?fields=link',
          function (error, body, statusCode, headers) {
            if (error) {
              console.log('There was an error making the request.');
              console.log('Server reported: ' + error);
              return;
            }

            return res.status(200).json({ url: body.link });
          }
        );
      },
      function (bytes_uploaded, bytes_total) {
        var percentage = ((bytes_uploaded / bytes_total) * 100).toFixed(2);
      }
)
</code>```

However when I call this with axios, I cannot get the progress with onUploadProgress, it instantly jumps to 100% while the file is still uploading.

I want to use the percentage variable in the component to show the progress. How can I extract the value that the callback gives me?

Body:
I am using NextJS API to upload a video to Vimeo. In its own function it returns the progress like this (at the last callback):

client.upload(
      file_name,
      {
        name: 'Untitled',
        description: 'The description goes here.'
      },
      function (uri) {
        client.request(
          uri + '?fields=link',
          function (error, body, statusCode, headers) {
            if (error) {
              console.log('There was an error making the request.');
              console.log('Server reported: ' + error);
              return;
            }

            return res.status(200).json({ url: body.link });
          }
        );
      },
      function (bytes_uploaded, bytes_total) {
        var percentage = ((bytes_uploaded / bytes_total) * 100).toFixed(2);
      }
)

However when I call this with axios, I cannot get the progress with onUploadProgress, it instantly jumps to 100% while the file is still uploading.

I want to use the percentage variable in the component to show the progress. How can I extract the value that the callback gives me?


问:
Twig\\Error\\RuntimeError status 500 mailjet API
In a symfony project,
I use an API mailjet to send emails,
In case of sending lots of email (over 290 emails), I have this error.
Status Code: 500 Internal Server Error
Runtime exception

Thanks!

After a search, I found that the error is due to a limit of the post request.
In fact I used ajax to send an array of 400 itemsin the data, but ajax is limited to 294 items.
Do you have a solution to increase this limit?


问:
How to remove empty white space at the bottom of the screen in NestedScrollView?
I'm using a NestedScrollView to make the carousel and viewPager scrollable. I added the carousel on the main layout because I need it on all pages from the tab layout. All the pages of the tab layout have only a recycler view in the fragment. The problem is that on the bottom of the screen there is a lot of empty white space that I can't figure out how to remove.

This is the main layout activity xml
`

```<code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/blue_primary"
    tools:context=".ui.activity.SplashscreenActivity">

    <LinearLayout
        android:id="@+id/mainTopBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="@dimen/margin_padding_size_xlarge"
        android:orientation="horizontal">

        ////// irrelevant code

    </LinearLayout>

    <LinearLayout
        android:id="@+id/mainLL"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="fill_vertical"
        android:layout_alignParentBottom="true"
        android:layout_below="@+id/mainTopBar"
        android:orientation="vertical">

        <com.google.android.material.tabs.TabLayout
            android:id="@+id/tab_layout"
            android:background="@color/blue_primary"
            app:tabTextAppearance="@style/MyCustomTextAppearance"
            app:tabIndicatorColor="@color/plan_popular_gradient_1"
            app:tabSelectedTextColor="@color/white"
            app:tabTextColor="@color/white"
            app:tabGravity="fill"
            android:clipToPadding="true"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:fillViewport="true"
            android:overScrollMode="never"
            android:layout_gravity="fill_vertical"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            android:orientation="vertical">

            <LinearLayout
                android:id="@+id/secondLL"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="top"
                android:orientation="vertical">

                <com.gigamole.infinitecycleviewpager.HorizontalInfiniteCycleViewPager
                    android:id="@+id/carousel"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/featured_height"
                    app:icvp_interpolator="@android:anim/accelerate_decelerate_interpolator"
                    app:icvp_scroll_duration="3000"
                    app:icvp_center_page_scale_offset="@dimen/icon_size_large"
                    app:icvp_min_page_scale_offset="@dimen/margin_padding_size_xmedium"
                    app:icvp_max_page_scale="0.8"
                    app:icvp_min_page_scale="0.55"
                    app:icvp_medium_scaled="false"/>

                <androidx.viewpager2.widget.ViewPager2
                    android:id="@+id/view_pager"
                    android:paddingHorizontal="@dimen/margin_padding_size_small"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

            </LinearLayout>

        </androidx.core.widget.NestedScrollView>

    </LinearLayout>

</RelativeLayout>
</code>```

`

This is the fragments xml
`

```<code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/app_layout_content_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:focusable="false"
    tools:context=".ui.fragments.AppLayoutFragment">

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/app_layout_scroll_rv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="fill_vertical"
        android:focusable="false"
        android:focusableInTouchMode="false" />

</LinearLayout>
</code>```

`

This is the recycler view item xml
`

```<code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/home_item_content_wrapper"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/margin_padding_size_medium"
    android:focusable="false"
    android:orientation="vertical">

    <TextView
        android:id="@+id/itemHomeTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:focusable="false"
        android:textStyle="bold"
        android:textSize="@dimen/text_size_large" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/itemHomeRv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:nestedScrollingEnabled="false"
        android:orientation="horizontal"
        android:focusable="false" />

</LinearLayout>
</code>```

`

I tried all the answers I could find on stackoverflow (you can see all the attributes on the NestedScrollView) but none of them fixed my problem.

Body:
I'm using a NestedScrollView to make the carousel and viewPager scrollable. I added the carousel on the main layout because I need it on all pages from the tab layout. All the pages of the tab layout have only a recycler view in the fragment. The problem is that on the bottom of the screen there is a lot of empty white space that I can't figure out how to remove.

This is the main layout activity xml
`

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@color/blue_primary"
    tools:context=".ui.activity.SplashscreenActivity">

    <LinearLayout
        android:id="@+id/mainTopBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="@dimen/margin_padding_size_xlarge"
        android:orientation="horizontal">

        ////// irrelevant code

    </LinearLayout>

    <LinearLayout
        android:id="@+id/mainLL"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="fill_vertical"
        android:layout_alignParentBottom="true"
        android:layout_below="@+id/mainTopBar"
        android:orientation="vertical">

        <com.google.android.material.tabs.TabLayout
            android:id="@+id/tab_layout"
            android:background="@color/blue_primary"
            app:tabTextAppearance="@style/MyCustomTextAppearance"
            app:tabIndicatorColor="@color/plan_popular_gradient_1"
            app:tabSelectedTextColor="@color/white"
            app:tabTextColor="@color/white"
            app:tabGravity="fill"
            android:clipToPadding="true"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:fillViewport="true"
            android:overScrollMode="never"
            android:layout_gravity="fill_vertical"
            app:layout_behavior="@string/appbar_scrolling_view_behavior"
            android:orientation="vertical">

            <LinearLayout
                android:id="@+id/secondLL"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="top"
                android:orientation="vertical">

                <com.gigamole.infinitecycleviewpager.HorizontalInfiniteCycleViewPager
                    android:id="@+id/carousel"
                    android:layout_width="match_parent"
                    android:layout_height="@dimen/featured_height"
                    app:icvp_interpolator="@android:anim/accelerate_decelerate_interpolator"
                    app:icvp_scroll_duration="3000"
                    app:icvp_center_page_scale_offset="@dimen/icon_size_large"
                    app:icvp_min_page_scale_offset="@dimen/margin_padding_size_xmedium"
                    app:icvp_max_page_scale="0.8"
                    app:icvp_min_page_scale="0.55"
                    app:icvp_medium_scaled="false"/>

                <androidx.viewpager2.widget.ViewPager2
                    android:id="@+id/view_pager"
                    android:paddingHorizontal="@dimen/margin_padding_size_small"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" />

            </LinearLayout>

        </androidx.core.widget.NestedScrollView>

    </LinearLayout>

</RelativeLayout>

`

This is the fragments xml
`

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/app_layout_content_container"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:focusable="false"
    tools:context=".ui.fragments.AppLayoutFragment">

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/app_layout_scroll_rv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="fill_vertical"
        android:focusable="false"
        android:focusableInTouchMode="false" />

</LinearLayout>

`

This is the recycler view item xml
`

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/home_item_content_wrapper"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="@dimen/margin_padding_size_medium"
    android:focusable="false"
    android:orientation="vertical">

    <TextView
        android:id="@+id/itemHomeTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:focusable="false"
        android:textStyle="bold"
        android:textSize="@dimen/text_size_large" />

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/itemHomeRv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:nestedScrollingEnabled="false"
        android:orientation="horizontal"
        android:focusable="false" />

</LinearLayout>

`

I tried all the answers I could find on stackoverflow (you can see all the attributes on the NestedScrollView) but none of them fixed my problem.


问:
Unable to return Internal Server Error in java unit test case
I am writing negative test case in which I am expecting internal server error but somehow I am not able to get it. The code i have tried and the output is posted below:

delete method:

```<code>/**
 * delete pricing rule by id
 * @param ruleId
 * @return
 */
@DeleteMapping(path = "/deleteById/{ruleId}")
public ResponseEntity<String> deletePricingRule(@PathVariable String ruleId) {
    logMethodStart(RulesCrudController.class, "deletePricingRule");
    try {
        log.debug( "deleting pricing rule with id: " + ruleId );
        String deletedId = pricingRuleServiceImpl.deletePricingRule(ruleId);
        if( deletedId != null ) {
            log.debug("deleted pricing rule with id: " + ruleId);
            return new ResponseEntity<>("The rule id : " + deletedId + " is deleted successfully", HttpStatus.OK);
        } else {
            return new ResponseEntity<>("No pricing rule with rule id: "+ ruleId +" is Found",HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
    catch(Exception e){
        log.error("deletePricingRule() got an exception: " + e.toString());
        return new ResponseEntity<>("No pricing rule with rule id: "+ ruleId +" is Found",HttpStatus.INTERNAL_SERVER_ERROR);
    }
}
</code>```

delete test case

```<code>@Test
public void DeletePricingRule_withDeleteMethod_InternalServerError() throws Exception {

    when(mockService.deletePricingRule(dynamo.getId())).thenReturn( null );

    mockMVC.perform(MockMvcRequestBuilders.delete("/pricingRule/deleteById/{ruleId}", dynamo.getId()))
            .andExpect(status().isInternalServerError());

}
</code>```

Object that I am using:

```<code>@Mock
private PricingRule dynamo, dynamo1;

@Before
public void setUp() {

    dynamo = new PricingRule();
    dynamo.setId("0653cf02-6b39-40ab-a008-6efea487eb8f");
    dynamo.setRuleDesc("dynamo test");

    dynamo1 = new PricingRule();
    dynamo1.setId("0653cf02-6b39-40ab-a008-6efea487eb8f");
    dynamo1.setRuleDesc("dynamo test");

}
</code>```

Output:

```<code>java.lang.AssertionError: Status
Expected :500
Actual   :200
</code>```

Body:
I am writing negative test case in which I am expecting internal server error but somehow I am not able to get it. The code i have tried and the output is posted below:

delete method:

/**
 * delete pricing rule by id
 * @param ruleId
 * @return
 */
@DeleteMapping(path = "/deleteById/{ruleId}")
public ResponseEntity<String> deletePricingRule(@PathVariable String ruleId) {
    logMethodStart(RulesCrudController.class, "deletePricingRule");
    try {
        log.debug( "deleting pricing rule with id: " + ruleId );
        String deletedId = pricingRuleServiceImpl.deletePricingRule(ruleId);
        if( deletedId != null ) {
            log.debug("deleted pricing rule with id: " + ruleId);
            return new ResponseEntity<>("The rule id : " + deletedId + " is deleted successfully", HttpStatus.OK);
        } else {
            return new ResponseEntity<>("No pricing rule with rule id: "+ ruleId +" is Found",HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
    catch(Exception e){
        log.error("deletePricingRule() got an exception: " + e.toString());
        return new ResponseEntity<>("No pricing rule with rule id: "+ ruleId +" is Found",HttpStatus.INTERNAL_SERVER_ERROR);
    }
}

delete test case

@Test
public void DeletePricingRule_withDeleteMethod_InternalServerError() throws Exception {

    when(mockService.deletePricingRule(dynamo.getId())).thenReturn( null );

    mockMVC.perform(MockMvcRequestBuilders.delete("/pricingRule/deleteById/{ruleId}", dynamo.getId()))
            .andExpect(status().isInternalServerError());

}

Object that I am using:

@Mock
private PricingRule dynamo, dynamo1;

@Before
public void setUp() {

    dynamo = new PricingRule();
    dynamo.setId("0653cf02-6b39-40ab-a008-6efea487eb8f");
    dynamo.setRuleDesc("dynamo test");

    dynamo1 = new PricingRule();
    dynamo1.setId("0653cf02-6b39-40ab-a008-6efea487eb8f");
    dynamo1.setRuleDesc("dynamo test");

}

Output:

java.lang.AssertionError: Status
Expected :500
Actual   :200


问:
How to specify create_indexes execution timeout with pymongo?
We're using pymongo 4.1.0 to connect to Mongo Atlas cluster v5.1, and we specify timeouts on the MongoClient instance using the connection string. We want 10 minutes timeout on all operations expect for create_indexes which we want to allow to take up to 60 minutes. I've tried providing a kwarg 'maxTimeMS' and 'timeoutMS' to the create_indexes operation and it didn't work. Is there some kwarg to provide that will make it work as expected?


问:
Cannot compile a statically linked Rust binary using docker due to zlib failure on M1 Mac
I'm trying to do some local dev to run some integration tests and need to compile a binary that's statically linked so I can use some C dependencies. This worked fine on my intel mac but I've been totally unable to create a useable image on my M1 mac.

Cargo.toml

[dependencies]
serde = "1.0.136"
serde_json = "1.0.79"
rdkafka = { version = "0.28.0", features = ["cmake-build"]} # , "ssl", "gssapi-vendored"
tokio = { version = "1.17", features = ["rt-multi-thread", "macros"] }
meilisearch-sdk = "0.17.0"
futures = "0.3.21"
log = "0.4.16"
pretty_env_logger = "0.4.0"
async-trait = "0.1.53"
tonic = "0.7.2"
nats = "0.21.0"
prost = "0.10.4"
lazy_static = "1.4.0"
```
<h2>Dockerfile</h2>
<pre class="lang-docker prettyprint-override"><code># Use clux/muslrust to compile the statically linked C-binaries for rdkafka
FROM docker.io/clux/muslrust:latest as build

RUN apt-get update && apt-get install gcc-multilib g++ cmake libsasl2-dev build-essential linux-libc-dev zlib1g zlib1g-dev -y
WORKDIR /usr/src

# Download the target for static linking & add rustfmt
RUN rustup target add x86_64-unknown-linux-musl  && rustup component add rustfmt

# Compile and install the binary
COPY . .
RUN ln -s /bin/g++ /bin/musl-g++
RUN cargo install --target x86_64-unknown-linux-musl --path .
</code>```

Error:

Compiling tracing v0.1.37
#18 167.5 <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
#18 167.5 <jemalloc>: (This is the expected behaviour if you are running under QEMU)
#18 171.3 error: failed to run custom build command for `libz-sys v1.1.8`
#18 171.3
#18 171.3 Caused by:
#18 171.3   process didn't exit successfully: `/usr/src/target/release/build/libz-sys-dc1598b5e3c2b6ab/build-script-build` (exit status: 1)
#18 171.3   --- stdout
#18 171.3   cargo:rerun-if-env-changed=LIBZ_SYS_STATIC
#18 171.3   cargo:rerun-if-changed=build.rs
#18 171.3   TARGET = Some("x86_64-unknown-linux-musl")
#18 171.3   OPT_LEVEL = Some("3")
#18 171.3   HOST = Some("x86_64-unknown-linux-gnu")
#18 171.3   cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-musl
#18 171.3   CC_x86_64-unknown-linux-musl = None
#18 171.3   cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_musl
#18 171.3   CC_x86_64_unknown_linux_musl = None
#18 171.3   cargo:rerun-if-env-changed=TARGET_CC
#18 171.3   TARGET_CC = None
#18 171.3   cargo:rerun-if-env-changed=CC
#18 171.3   CC = Some("musl-gcc")
#18 171.3   cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-musl
#18 171.3   CFLAGS_x86_64-unknown-linux-musl = None
#18 171.3   cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_musl
#18 171.3   CFLAGS_x86_64_unknown_linux_musl = None
#18 171.3   cargo:rerun-if-env-changed=TARGET_CFLAGS
#18 171.3   TARGET_CFLAGS = None
#18 171.3   cargo:rerun-if-env-changed=CFLAGS
#18 171.3   CFLAGS = None
#18 171.3   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
#18 171.3   CRATE_CC_NO_DEFAULTS = None
#18 171.3   DEBUG = Some("false")
#18 171.3   CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")
```

Body:
I'm trying to do some local dev to run some integration tests and need to compile a binary that's statically linked so I can use some C dependencies. This worked fine on my intel mac but I've been totally unable to create a useable image on my M1 mac.

Cargo.toml

[dependencies]
serde = "1.0.136"
serde_json = "1.0.79"
rdkafka = { version = "0.28.0", features = ["cmake-build"]} # , "ssl", "gssapi-vendored"
tokio = { version = "1.17", features = ["rt-multi-thread", "macros"] }
meilisearch-sdk = "0.17.0"
futures = "0.3.21"
log = "0.4.16"
pretty_env_logger = "0.4.0"
async-trait = "0.1.53"
tonic = "0.7.2"
nats = "0.21.0"
prost = "0.10.4"
lazy_static = "1.4.0"

Dockerfile

# Use clux/muslrust to compile the statically linked C-binaries for rdkafka
FROM docker.io/clux/muslrust:latest as build

RUN apt-get update && apt-get install gcc-multilib g++ cmake libsasl2-dev build-essential linux-libc-dev zlib1g zlib1g-dev -y
WORKDIR /usr/src

# Download the target for static linking & add rustfmt
RUN rustup target add x86_64-unknown-linux-musl  && rustup component add rustfmt

# Compile and install the binary
COPY . .
RUN ln -s /bin/g++ /bin/musl-g++
RUN cargo install --target x86_64-unknown-linux-musl --path .

Error:

Compiling tracing v0.1.37
#18 167.5 <jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
#18 167.5 <jemalloc>: (This is the expected behaviour if you are running under QEMU)
#18 171.3 error: failed to run custom build command for `libz-sys v1.1.8`
#18 171.3
#18 171.3 Caused by:
#18 171.3   process didn't exit successfully: `/usr/src/target/release/build/libz-sys-dc1598b5e3c2b6ab/build-script-build` (exit status: 1)
#18 171.3   --- stdout
#18 171.3   cargo:rerun-if-env-changed=LIBZ_SYS_STATIC
#18 171.3   cargo:rerun-if-changed=build.rs
#18 171.3   TARGET = Some("x86_64-unknown-linux-musl")
#18 171.3   OPT_LEVEL = Some("3")
#18 171.3   HOST = Some("x86_64-unknown-linux-gnu")
#18 171.3   cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-musl
#18 171.3   CC_x86_64-unknown-linux-musl = None
#18 171.3   cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_musl
#18 171.3   CC_x86_64_unknown_linux_musl = None
#18 171.3   cargo:rerun-if-env-changed=TARGET_CC
#18 171.3   TARGET_CC = None
#18 171.3   cargo:rerun-if-env-changed=CC
#18 171.3   CC = Some("musl-gcc")
#18 171.3   cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-musl
#18 171.3   CFLAGS_x86_64-unknown-linux-musl = None
#18 171.3   cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_musl
#18 171.3   CFLAGS_x86_64_unknown_linux_musl = None
#18 171.3   cargo:rerun-if-env-changed=TARGET_CFLAGS
#18 171.3   TARGET_CFLAGS = None
#18 171.3   cargo:rerun-if-env-changed=CFLAGS
#18 171.3   CFLAGS = None
#18 171.3   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
#18 171.3   CRATE_CC_NO_DEFAULTS = None
#18 171.3   DEBUG = Some("false")
#18 171.3   CARGO_CFG_TARGET_FEATURE = Some("fxsr,llvm14-builtins-abi,sse,sse2")


问:
AVR32DA28 watchdog randomly resets
I am trying to work with Watchdog System Reset Mode.
The problem is, it is running good at the start of the mcu but after running for any random period of time it reset the mcu even if i am resetting the counter before the counter overflow. The System reset is occurring randomly. I have tried configuring the watchdog  by atmel start, by manual configuration and importing the avr/wdt.h library also but the result is still same. My Mcu is running on internal 12Mhz Clock.
for your better understand i am providing all the methods i have tried below please give your valuable time to read this and share your opinion on this.

Atmel Start import

```<code>int8_t WDT_0_init()
{

ccp_write_io((void *)&(WDT.CTRLA),
             WDT_PERIOD_1KCLK_gc /* 1K cycles (1.0s) */
                 | WDT_WINDOW_OFF_gc /* Off */);

return 0;
}
</code>```

Library import

```<code>int main(void)
{
wdt_disable();
atmel_start_init();
wdt_enable(WDTO_1S);
sei();

while (1) {
wdt_reset();
}
</code>```

thank you.

Title: AVR32DA28 watchdog randomly resets

Body:
I am trying to work with Watchdog System Reset Mode.
The problem is, it is running good at the start of the mcu but after running for any random period of time it reset the mcu even if i am resetting the counter before the counter overflow. The System reset is occurring randomly. I have tried configuring the watchdog  by atmel start, by manual configuration and importing the avr/wdt.h library also but the result is still same. My Mcu is running on internal 12Mhz Clock.
for your better understand i am providing all the methods i have tried below please give your valuable time to read this and share your opinion on this.

Atmel Start import

int8_t WDT_0_init()
{

ccp_write_io((void *)&(WDT.CTRLA),
             WDT_PERIOD_1KCLK_gc /* 1K cycles (1.0s) */
                 | WDT_WINDOW_OFF_gc /* Off */);

return 0;
}

Library import

int main(void)
{
wdt_disable();
atmel_start_init();
wdt_enable(WDTO_1S);
sei();

while (1) {
wdt_reset();
}

thank you.


问:
v-select with object from firestore
I am trying to create a v-select that displays categories. I create the categories in firestore. articles(collection) > documentId(auto gen'd) > categories(map) with "bicyles" array and musical instruments array. The vuex getter with "{{this.categories}}" gets:

[ { "categories": { "musicalInstruments": [ "guitar", "viola" ], "bicycles": [ "mountainBike", "street" ] } } ]

How can I create a v-select?

currently this is all i have:

```<code><v-select
  filled
  hide-details="auto"
  return-object
  label="Catagory"
  :items="this.categories"
  @input="updateCategory"
>
</v-select>
</code>```

Is my firestore structure for categories adequate or am I overlooking something? I do want to filter this in search eventually. What is the best firestore structure? and if this is adequate, how should i create a v-select with this object? just not sure what to do, really. THank you.

Title: v-select with object from firestore

Body:
I am trying to create a v-select that displays categories. I create the categories in firestore. articles(collection) > documentId(auto gen'd) > categories(map) with "bicyles" array and musical instruments array. The vuex getter with "{{this.categories}}" gets:

[ { "categories": { "musicalInstruments": [ "guitar", "viola" ], "bicycles": [ "mountainBike", "street" ] } } ]

How can I create a v-select?

currently this is all i have:

<v-select
  filled
  hide-details="auto"
  return-object
  label="Catagory"
  :items="this.categories"
  @input="updateCategory"
>
</v-select>

Is my firestore structure for categories adequate or am I overlooking something? I do want to filter this in search eventually. What is the best firestore structure? and if this is adequate, how should i create a v-select with this object? just not sure what to do, really. THank you.


问:
IllegalStateException: Logback configuration error
Below my logback configuration file. System CentOS7.9 Every time I get error with permission issues however I gave all required

```<code><?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    <property name="LOG_FILE" value="/var/log/file_name/"/>

    <springProfile name="local">
        <root level="INFO">
            <appender-ref ref="CONSOLE"/>
        </root>
    </springProfile>

    <springProfile name="dev">
        <appender name="ROLLING-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <encoder>
                <pattern>%d %contextName [%t] %level %logger{36} - %msg%n</pattern>
            </encoder>
            <file>${LOG_FILE}file_name</file>
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
                <fileNamePattern>${LOG_FILE}file_name.%d{yyyy-MM-dd-HH}.gz</fileNamePattern>
                <maxHistory>30</maxHistory>
            </rollingPolicy>
        </appender>
        <root>
            <level value="INFO"/>
            <appender-ref ref="ROLLING-FILE"/>
        </root>
    </springProfile>

    <springProfile name="prod">
        <appender name="ROLLING-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <encoder>
                <pattern>%d %contextName [%t] %level %logger{36} - %msg%n</pattern>
            </encoder>
            <file>${LOG_FILE}file_name</file>
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
                <fileNamePattern>${LOG_FILE}file_name.%d{yyyy-MM-dd-HH}.gz</fileNamePattern>
                <maxHistory>30</maxHistory>
            </rollingPolicy>
        </appender>
        <root>
            <level value="INFO"/>
            <appender-ref ref="ROLLING-FILE"/>
        </root>
    </springProfile>

    <logger name="com.amazon.sqs.javamessaging.SQSSession">
        <level value="WARN"/>
    </logger>
    <logger name="com.amazon.sqs.javamessaging.SQSMessageProducer">
        <level value="WARN"/>
    </logger>

</configuration>
</code>```

While run it below error appeared

```<code>Dec 26 12:11:54 fleet journal: Caused by: java.lang.IllegalStateException: Logback configuration error detected:
Dec 26 12:11:54 fleet journal: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING-FILE] - openFile(/var/log/folder/file_name,true) call failed. java.io.FileNotFoundException: /var/log/folder/file_name (Permission denied)
</code>```

I provided all permission to that folder but still same error

Body:
Below my logback configuration file. System CentOS7.9 Every time I get error with permission issues however I gave all required

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <include resource="org/springframework/boot/logging/logback/base.xml"/>
    <property name="LOG_FILE" value="/var/log/file_name/"/>

    <springProfile name="local">
        <root level="INFO">
            <appender-ref ref="CONSOLE"/>
        </root>
    </springProfile>

    <springProfile name="dev">
        <appender name="ROLLING-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <encoder>
                <pattern>%d %contextName [%t] %level %logger{36} - %msg%n</pattern>
            </encoder>
            <file>${LOG_FILE}file_name</file>
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
                <fileNamePattern>${LOG_FILE}file_name.%d{yyyy-MM-dd-HH}.gz</fileNamePattern>
                <maxHistory>30</maxHistory>
            </rollingPolicy>
        </appender>
        <root>
            <level value="INFO"/>
            <appender-ref ref="ROLLING-FILE"/>
        </root>
    </springProfile>

    <springProfile name="prod">
        <appender name="ROLLING-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
            <encoder>
                <pattern>%d %contextName [%t] %level %logger{36} - %msg%n</pattern>
            </encoder>
            <file>${LOG_FILE}file_name</file>
            <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
                <fileNamePattern>${LOG_FILE}file_name.%d{yyyy-MM-dd-HH}.gz</fileNamePattern>
                <maxHistory>30</maxHistory>
            </rollingPolicy>
        </appender>
        <root>
            <level value="INFO"/>
            <appender-ref ref="ROLLING-FILE"/>
        </root>
    </springProfile>

    <logger name="com.amazon.sqs.javamessaging.SQSSession">
        <level value="WARN"/>
    </logger>
    <logger name="com.amazon.sqs.javamessaging.SQSMessageProducer">
        <level value="WARN"/>
    </logger>

</configuration>

While run it below error appeared

Dec 26 12:11:54 fleet journal: Caused by: java.lang.IllegalStateException: Logback configuration error detected:
Dec 26 12:11:54 fleet journal: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ROLLING-FILE] - openFile(/var/log/folder/file_name,true) call failed. java.io.FileNotFoundException: /var/log/folder/file_name (Permission denied)

I provided all permission to that folder but still same error