简体   繁体   中英

The import com.sonymobile cannot be resolved

I'm trying to build an Android project that depends on Sony Add-on SDK, so I installed Sony Add-on SDK 3.0 for Android 4.4.2 (API19):

在此处输入图片说明

The project's .properties is set to target API19:

# Project target.
target=android-19

But I still get an error on this line, saying it can't find com.sonymobile:

import com.sonymobile.camera.addon.capturingmode.CapturingModeSelector;

The error text is:

The import com.sonymobile cannot be resolved

But I have installed Sony Add-on SDK 3.0 for the correct API version, so what gives?

As @Thorben suggested, I needed to change the build target from Android 4.4.2 to Sony Add-on SDK 3.0 (in Context Menu->Properties->Android):

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM