App Actions Test ToolでNoSuchMethodErrorが出る(2022/5/25時点)

原因(2022/5/18時点)

最新版のAndroid Studio(2021.2.1)を入れた後にApp Actions Test Toolのプラグインを入れると、古いバージョンが入ってしまうから。

前のバージョン(2021.1.1 Patch 3)にダウングレードするとMarketplaceでも最新版が入るので、最新のAndroid Studioを使う時はApp Actions Test Toolがアップデートされるまで待つしかなさそう。

 

Gradleのバージョンも合わせて下げないと様々な不幸に見舞われる。

App Actions Test Toolを実行すると以下のようなエラーに悩まされる(Flutterから実行したものも含まれる)

No Android Module with actions file reference found. You need one Android Module with an actions file reference.

Could not read package name from the build file.

More than one Android module with action references found. The App Actions Test tool currently supports projects with exactly one Android module with actions file references.

Gradleのバージョンも下げよう

Android StudioのFile > Project Structure >Projectから、

Android Gradle Plugin Versionを7.0.2に

Gradle Versionを7.2に

変更するとApp Actions Test Toolが実行できる。