Firebase Test lab でアプリをテストしようとしましたが、「testOnly APK は許可されていません」というエラーが表示されます。
C:\temp>gcloud firebase test android run --type instrumentation --app myapp.apk --test myapp-androidTest.apk --device model=Nexus10,version=22,locale=en,orientation=landscape --timeout 300s
Have questions, feedback, or issues? Get support by visiting:
https://firebase.google.com/support/
Uploading [myapp.apk] to Firebase Test Lab...
Uploading [myapp-androidTest.apk] to Firebase Test Lab...
Raw results will be stored in your GCS bucket at [https://console.developers.google.com/storage/browser/test-lab-j9zwyqscmy0rw-k53tazzivjxvu/2017-10-16_11:56:43.691000_AcnJ/]
Test [matrix-1vxb29yr0b2z7] has been created in the Google Cloud.
Firebase Test Lab will execute your instrumentation test on 1 device(s).
Creating individual test executions...failed.
ERROR: (gcloud.firebase.test.android.run)
Matrix [matrix-1vxb29yr0b2z7] failed during validation: "testOnly" found in the Manifest. testOnly APKs are not allowed.
C:\temp>
しかし、デプロイ ターゲット オプションを「Firebase Test Lab Device Matrix」に設定して Android Studio 3.0 RC1 で実行すると、firebase テストが機能します。
プロジェクトで「testOnly」を検索しましたが、見つかりませんでした。AndroidManifest.xml に属性をグラドル注入したようです。
誰もそれを解決する方法を知っていますか?