草庐IT

SOURCE_FILES

全部标签

android - com.android.dx.util.DexException : Multiple dex files define

我使用antrelease并得到这个错误:[dx]UNEXPECTEDTOP-LEVELEXCEPTION:[dx]com.android.dx.util.DexException:MultipledexfilesdefineLcom/android/vending/billing/IMarketBillingService;[dx]atcom.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:580)[dx]atcom.android.dx.merge.DexMerger.getSortedTypes(DexMer

未找到 Android Source Repo GPG 公钥

我正在运行LinuxMint14并尝试下载android源代码。我按照设置环境的说明进行操作,当我尝试使用repo获取源代码时,出现以下错误。...*[newtag]v1.9.4->v1.9.4*[newtag]v1.9.5->v1.9.5*[newtag]v1.9.6->v1.9.6objecte76efdd7b342577c40aa271fa5ded9d66a783a9btypecommittagv1.12.4taggerConleyOwens1380645867-0700repo1.12.4gpg:SignaturemadeTue01Oct201309:44:27AMPDTusi

android - Android Studio 3 中的 "Sync project with gradle files"按钮在哪里?

这个按钮从新的3.1版本的ASToolbar中消失了。之前它显示为:现在它不见了: 最佳答案 编辑:他们喜欢继续使用工具栏。自AndroidStudio3.3起,图标已更新并移回右侧:原答案:它并没有消失。他们刚刚将其移动到工具栏最左端的保存和同步文件按钮之间。 关于android-AndroidStudio3中的"Syncprojectwithgradlefiles"按钮在哪里?,我们在StackOverflow上找到一个类似的问题: https://sta

Android SDK 和 AVD 管理器错误 : File not found: C:\Program Files (x86)\Android\android-sdk\temp\

最初,我只安装了AndroidAPI12。但现在,我正在尝试安装其他可用的软件包,它显示:DownloadingSDKPlatformAndroid3.0,API11,revision1Filenotfound:C:\ProgramFiles(x86)\Android\android-sdk\temp\android-3.0_r01-linux.zip(Accessisdenied)DownloadingSDKPlatformAndroid2.3.3,API10,revision1Filenotfound:C:\ProgramFiles(x86)\Android\android-sdk

android - Android项目的Eclipse "Import"和 "Create project from existing source"有什么区别?

我知道有两种方法可以将现有的Android项目导入Eclipse。即“导入”和“从现有源创建项目”。但是这两种导入方式有什么区别呢?谁能详细解释一下? 最佳答案 嗯,我想这很简单:1)导入:导入一个Eclipse项目,带有首选项和其他一切2)从现有源:导入另一个IDE的项目,如IntelliJIDEA(或根本没有IDE项目=只有普通源)。您必须设置新的首选项,例如构建目标等。 关于android-Android项目的Eclipse"Import"和"Createprojectfromex

android - 收集首选项失败,在 C :\Program Files (x86)\Android\android-sdk\platforms\android-19\android. jar 中找不到类 java/lang/Au​​toCloseable

我刚刚从sdk管理器更新了androidsdkAPI-19和buildtool-19。但是在启动eclipse时,它​​会显示标题中提到的控制台错误。当我为android4.4模拟器创建avd时,还有一件事没有显示在正在运行的模拟器列表中。请解决这个问题,谢谢 最佳答案 我也遇到过同样的问题,现在已经解决了。尝试以下步骤去帮助|安装新软件...选择Android开发者工具更新站点-http://dl-ssl.google.com/android/eclipse/按全选按完成完成 关于an

android - <录音> "Could not get audio input for record source 1"

我在为Android初始化AudioRecord时遇到了这个问题。我在网上搜索了很长时间没有成功。对于手机,我在SDK版本7上使用三星GalaxyS。对于AudioRecord初始化,我使用8000作为采样率,MONO用于channel配置,16位用于音频格式,根据日志,minBufferSize设置为4160。我已将AUDIO_RECORD权限添加到list中。我的初始化代码如下:...privatestaticintSAMPLE_RATE=8000;privatestaticintCHANNEL_CONFIG=AudioFormat.CHANNEL_CONFIGURATION_MO

android - 有没有办法检查 "Install from unknown source"是否在 Android 上启用?

如果未启用此选项,我想提示用户。 最佳答案 这是检查此设置的另一种方法:booleanisNonPlayAppAllowed=Settings.Secure.getInt(getContentResolver(),Settings.Secure.INSTALL_NON_MARKET_APPS)==1;此外,这段向用户显示设置的代码可能对我有用:if(!isNonPlayAppAllowed){startActivity(newIntent(android.provider.Settings.ACTION_SECURITY_SETTI

c++ - CMake 和 lcov : gcno files not found

我正在尝试获取基于CMake的项目(包含多个目标)的代码覆盖率。首先我生成gcno文件:lcov-b.-d.-ocoverage.output--capture--initial生成的*.gcnobuild_dir/[target_dir]/CMakeFiles/[target_dir].dir然后我运行生成*.gcna文件的测试build_dir/tests/CMakeFiles/[target_dir].dir当我再次运行lcov时:lcov-b.-d.-ocoverage.output--capture我收到以下错误:Scanning.for.gcdafiles...Found2

c++ - std::experimental::source_location 如何实现?

库基础的C++扩展,版本2(N4564)引入了std::experimental::source_location类型。§14.1.2[reflection.src_loc.creation]说:staticconstexprsource_locationcurrent()noexcept;Returns:Wheninvokedbyafunctioncall(C++14§ 5.2.2)whosepostfix-expressionisa(possiblyparenthesized)id-expressionnamingcurrent,returnsasource_locationwit