草庐IT

SOURCE_FILES

全部标签

安卓 : Playing MP3 files with AudioTrack using ffmpeg

我在我的项目中集成了ffmpeglib,我也可以获取媒体文件的信息。但现在我必须使用ffmpeglib在android中使用AudioTrack类播放mp3文件。为此,我必须将字节缓冲区传递给AudioTrack,但我不知道如何从ffmpeg获取字节缓冲区并将其与AudioTrack一起使用。我也想立即播放文件。这是我在java中的音轨代码:AudioTracktrack;bufferSize=AudioTrack.getMinBufferSize(44100,AudioFormat.CHANNEL_CONFIGURATION_MONO,AudioFormat.ENCODING_PCM

android - 调试 Android 应用程序时出现 No source attachment 错误

我刚刚开始使用Eclipse在MacOSX上进行Android开发。在调试Activity时,我不断收到以下错误:TheJARfile/platforms/android-10/android.jarhasnosourceattachment.这开始变得很烦人,这是否意味着某处某处抛出异常?(消息本身没有提供任何有意义的信息来说明为什么会发生这种情况)我不想进入源头;Eclipse是否默认执行此操作?如何禁用它? 最佳答案 看起来您的应用程序中有一些错误。Android子系统抛出异常。通常,如果此类异常源自android,您将看到此

android - [12728] :WARNING:android/base/files/IniFile. cpp :158:Failed to process . ini文件C :\Users\User_Name\. android\emu-update-last-check.ini 用于读取

在AndroidStudio上,我不断收到此警告:[12728]:WARNING:./android/base/files/IniFile.cpp:158:Failedtoprocess.inifileC:\Users\user_name.android\emu-update-last-check.iniforreading.我不知道这是什么意思。 最佳答案 在我的机器上,出于某种原因,我丢失了emu-update-last-check.ini文件。我在消息中列出的文件夹中创建了一个空文件,将其命名为emu-update-last-

android - react-native android assembleDebug日志: Unknown source file : warning: string 'catalyst_debugjs' has no default translation

测试一个新的react-native项目:react-nativeinitreact-native运行-android日志:...:app:bundleDebugJsAndAssetsSKIPPED:app:processDebugManifest:app:processDebugResourcesUnknownsourcefile:warning:string'catalyst_debugjs'hasnodefaulttranslation.Unknownsourcefile:warning:string'catalyst_element_inspector'hasnodefault

安卓NDK : custom WebView compiling from source

我的目标是在Android中创建WebView的修改版本(称为WebViewCustom)以供我在我的应用程序中使用。WebView是基于WebKit的,所以我需要通过NDK在C中编译它。我现在没有兴趣参与开源的Android项目,所以我的需求只是能够编译WebView的原始C源代码,并在我的Android应用程序中将其用作自定义控件(SDK和NDK都是可能的环境)为申请)。我认为没有我不感兴趣的所有GITWebKit东西是可能的,但我不是Android和WebKit项目的专家。是否可以只编辑和编译WebView代码并将其作为新控件放入我的应用程序中?你能告诉我这个任务的主要步骤吗?

Android 库项目 com.android.dex.DexException : Multiple dex files define Lcom/google/gson/JsonSerializer

我正在AndroidStudio中编写一个库项目。我的gradle文件包括gsonvolleyplay-services等...将我的库嵌入项目时,我得到:com.android.dex.DexException:MultipledexfilesdefineLcom/google/gson/JsonSerializer;有人可以解释一下gradle在创建库项目时是如何工作的吗?我应该如何解释集成我的SDK的开发人员,exclude模块如何工作,以及为什么它在包含我的aar的应用程序中不起作用? 最佳答案 有两种情况需要考虑首先,如果

android - 错误 : Source Path does not exist for android icon png when building for ionic

Yoursysteminformation:CordovaCLI:6.5.0IonicCLIVersion:2.2.1IonicAppLibVersion:2.2.0OS:macOSSierraNodeVersion:v6.9.5Xcodeversion:Xcode8.2.1Buildversion8C1002我正在尝试使用ionicplatformaddandroid创建一个android项目,但它总是提示resources/android/icon/drawable-hdpi-icon.png不存在。事实上它不存在——这些资源都不存在。它们可以通过ionicresources创建。

android - Firebase 性能监视器导致 "D8: Unsupported source file type"

我加了applyplugin:'com.google.firebase.firebase-perf'当我运行build脚本时,我得到了/transforms/FirebasePerformancePlugin/dev/debug/174/module-info.class:D8:Unsupportedsourcefiletype这可能是什么问题?我更新了所有插件、播放服务和AndroidStudio,但没有成功 最佳答案 我通过更新gradle版本解决了这个问题类路径'com.android.tools.build:gradle:3

android - com.android.builder.packaging.DuplicateFileException : Duplicate files copied in APK META-INF/maven/com. fasterxml.jackson.core/jackson-databind/pom.xml

我正在创建一个使用RestAPI来获取数据的应用程序,对于该操作,我正在使用retrofit2、okhttp3和jackson将json解析为对象,我的应用程序还使用FirebaseCloudMessaging当我编译我的代码时,出现以下错误,我无法运行它错误:任务':app:transformResourcesWithMergeJavaResForDebug'执行失败。com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:Dupli

Android MediaStore 查询 MediaStore.MediaColumns.TITLE column is null for some files

我正在查询Android的MediaStore文件数据库-MediaStore.Files.getContentUri("external")-对于某些特定文件夹,MediaStore.MediaColumns。TITLE和MediaStore.MediaColumns.DISPLAY_NAME为空,而对于其他文件夹,此值存在。我找不到关于MediaStore.MediaColumns.TITLE的任何文档可能为空。一些内部Android目录会发生这种情况,例如:_data:/storage/emulated/0/Music,title:null,_display_name:null_