简体   繁体   English

导入com.sonymobile无法解析

[英]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): 我试图构建一个依赖Sony附加SDK的Android项目,因此我安装了适用于Android 4.4.2(API19)的Sony附加SDK 3.0:

在此处输入图片说明

The project's .properties is set to target API19: 项目的.properties设置为目标API19:

# Project target.
target=android-19

But I still get an error on this line, saying it can't find com.sonymobile: 但是我仍然在这条线上出现错误,说找不到com.sonymobile:

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

The error text is: 错误文本为:

The import com.sonymobile cannot be resolved 导入com.sonymobile无法解析

But I have installed Sony Add-on SDK 3.0 for the correct API version, so what gives? 但是我已经为正确的API版本安装了Sony Add-on SDK 3.0,那又能带来什么呢?

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): 正如@Thorben所建议的,我需要将构建目标从Android 4.4.2 更改为Sony Add-on SDK 3.0(在上下文菜单->属性-> Android中):

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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