gpt4 book ai didi

Why can't I import javax.sound.sampled. when they seem to show in my libraries?(为什么不能导入javax.sound.sampled。当它们似乎出现在我的图书馆里时?)

翻译 作者:bug小助手 更新时间:2023-10-26 22:06:50 28 4
gpt4 key购买 nike



I am trying to use some of the classes from the javax.sound.sampled libraries. But even though, to my novice eyes, the files are there, AndroidStudio won't import them.

我正在尝试使用javax.sound.sampled库中的一些类。但是,即使在我新手看来,文件就在那里,Android Studio也不会导入它们。



Is something not set properly?

是不是有什么东西没放好?



Image of libraries as shown in AndroidStudio

AndroidStudio中显示的库图片


更多回答

Possible duplicate of javax.* cannot be imported in my Android app?

我的安卓应用程序中不能导入可能复制的javax.*吗?

@ChrisStratton I don't think this should be considered a duplicate. Different environments, and again to my naïve eyes, the library seems to be available if you look at the image I included.

@ChrisStratton我认为这不应该被认为是复制品。不同的环境,在我天真的眼睛里,如果你看我包含的图像,这个库似乎是可用的。

That is the standard Java library (for some reason) not an Android library.

这是标准的Java库(出于某种原因),而不是Android库。

It is absolutely a duplicate. Your screen shot shows you are browsing around in a JDK, the libraries of which are of no applicability. These class do not exist in the Android SDK - you will have to rewrite whatever you want to accomplish in terms of those that do.

这绝对是一个复制品。您的屏幕截图显示您正在JDK中浏览,其库不适用。这些类不存在于Android SDK中--您将不得不重写任何您想要实现的东西。

优秀答案推荐

Try deleting the module-info.java from the default package.

尝试从默认包中删除MODULE-info.java。


更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com