问题
I am facing the issue while running the app actions fitness sample with App Actions test tool, the assistant says "Sorry, I couldn't find that"
Steps Followed:
- Uploaded the APK to play store internal test track in draft mode
- Logged in with same account to (Device, PlayConsole and AndroidStudio)
- Changed the packageId to the app which I have uploaded to playstore
- Running App Actions Test Tool -> Preview uploaded successfully
- Run -> Opens Assistant in device with message 'Sorry, Couldn't find that'
回答1:
Here's a few more things to verify. The two pieces of information that are important to check match up are the package name, let's use com.sample.app
as an example and the Google account, let's use sample@gmail.com
as an example.
Verify package name matches up:
- You should have
com.sample.app
as an app in your Play Console account forsample@gmail.com
(it can be in any track) - You should have the
com.sample.app
APK installed on your test device - You should have an actions.xml in the source code for the app with package
com.sample.app
- you should run the App Actions Test Tool from this project
Verify the Google account matches up:
- You should be logged into Android Studio with
sample@gmail.com
- You should be logged into your test device with
sample@gmail.com
, you should also have Google Assistant set up with the same account (ensure you can trigger Google Assistant for that account)
You should also verify:
- You can successfully trigger the defined Android deep links defined in your
AndroidManifest.xml
(the ones thatactions.xml
will call), see here for how to test usingadb
. You could also specify your package name in theadb
command to test even more accurately how Assistant will call your app.
If you still have issues, try looking at adb logcat
for the exact Intent
that Assistant is trying to call. Note that you will need to turn off a filter for your package name if you are looking in Android Studio. The log will come from the Google Search app (which is what runs Assistant). It should hopefully tell you the package name and Android Intent
params it is trying to call your app with, which will let you work out what's going wrong.
回答2:
Thanks for quick response. Now I am able to see the Android Slices and App Actions via google assistant. It started working I just checked all me configuration and everything looks good.
Steps I performed:
- Checked all my logins (Test Device, Play Console and Android Studio)
- Freshly installed the application with the package name which was uploaded to playstore.(Comment the actions meta-data and then upload the app to play console otherwise it won't allow to upload)
- Deleted actions preview and updated again from AATT.(App Actions Test Tool)
- Run the command it started launching the app via google assistant and showing the slice from app inside google assistant window.
Just a quick query how can i trigger the voice commands for the same instead of adb command generated by AATT?
Thank you again for your help.
回答3:
In my case it worked after checking these two things-
- The account should be owner on google play console.
- The locale on your device should match to what you are choosing in Test Tool. In my case it was English(UK) and after changing it to English(US), it started working.
来源:https://stackoverflow.com/questions/57936224/app-actions-test-tool-with-google-assistant-shows-sorry-i-couldnt-find-it