1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dependent features configured but no package ID was set. エラー回避備忘録

Last updated at Posted at 2021-01-03

概要

Opencv (今回は4系)をandroid app に New Module として追加し、
サンプルを実行しようとすると、

コンパイル時に

Dependent features configured but no package ID was set.

となった時の回避備忘録

方法

追加したモジュール(今回の環境では Module: java)
以下のbuild.gradle において、1行目の

- apply plugin: 'com.android.application'
+ apply plugin: 'com.android.library'

とした。

また、
同じファイルの、

    defaultConfig {
        applicationId "org.opencv"
    }

applicationIdをコメントアウトした。

    defaultConfig {
        //applicationId "org.opencv"
    }

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?