0
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 5 years have passed since last update.

cannot resolve 'import com.android.ims.ImsManager'みたいなエラーの解決方法

Last updated at Posted at 2017-05-19

1. <状況説明>

あるmakefile,例えばdevice.mkに

PRODUCT_PACKAGES += \
    com.android.phone.common

を追加して

cannot resolve import com.android.imscannot resolve 'import com.android.ims.ImsManager'みたいなエラーが出たと仮定する

2. <調査方法>

Step1:概略調査

ソースのトップディレクトリから

$ find ./ -name '*.java' | xargs grep 'package com.android.ims.ImsManager' -lrns

で検索する。すると

frameworks/opt/net/ims/src/java/com/android/ims/ImsManager.java

がヒットする。

Step2:ImsManager.javaのAndroid.mkの内容チェック。

LOCAL_MODULE := ims-common

がある。

Step3:Android.mkにStep2の結果を反映。

packages/apps/PhoneCommon/Android.mkに

LOCAL_JAVA_LIBRARIES := ims-common

を追加する。:v:

0
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
0
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?