facebook twitter hatena line email

Flutter/外部ライブラリ/vibrate

提供: 初心者エンジニアの簡易メモ
2019年12月1日 (日) 18:29時点におけるAdmin (トーク | 投稿記録)による版 (java.lang.SecurityException: Requires VIBRATE permissionエラーの場合)

移動: 案内検索

vibrateとは

バイブ・振動のライブラリ

インストール

pubspec.yaml

dependencies:
  vibrate: any

サンプル

import 'package:vibrate/vibrate.dart';

java.lang.SecurityException: Requires VIBRATE permissionエラーの場合

android/app/src/main/AndroidManifest.xmlに以下を追加

<uses-permission
android:name="android.permission.VIBRATE"></uses-permission>

vibrate` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.エラーの場合

https://qiita.com/ko2ic/items/f082f07df8a2aca6beed ここら辺やったが治らず。