草庐IT

install-rectangular-package

全部标签

android - TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA 的 IntentNotFoundException

我正在尝试通过关注thisarticle来实现文本到语音的转换在Android开发者博客上。如果不支持,它会建议使用以下代码来安装文本到语音数据。IntentinstallIntent=newIntent();installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);startActivity(installIntent);这会抛出一个Exception:ActivityNotFoundException:NoactivityfoundtohandleIntent但是,我使用的代码是here确定实际支持的I

android - Intellij Idea 日志 GradleConnectionException : Could not execute build using Gradle installation while building

我使用IntellijIdea13.1.1并且在构建时出现GradleConnectionException:Error:org.gradle.tooling.GradleConnectionException:CouldnotexecutebuildusingGradleinstallation'C:\Users\\.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10'.:CouldnotexecutebuildusingGradleinstallation'C:\Users\\.gr

Android APK [INSTALL_FAILED_NO_MATCHING_ABIS : Failed to extract native libraries, res=-113]

当我尝试在API26上安装android应用程序时。出现此错误。首先,我尝试使用构建工具版本-25.3.1遇到相同的问题,如下图所示。然后我将构建工具版本更新为26.0.1并将支持库版本更新为26.0.0。最近的GooglePlay服务版本-11.0.4。我已经检查了我正在使用的android库是否具有native代码,即C++代码,但我使用的每个库库都是用Java编写的,期望一个库包含一些PHP、Python和Ruby。我正在使用谷歌地图谷歌位置谷歌GCM。我已尝试在我的Gradle文件中包含ABI拆分,如前所述heresplits{abi{enabletruereset()incl

android - 如何在 Android Oreo 上注册 ACTION_PACKAGE_ADDED 和 ACTION_PACKAGE_REMOVED?

查看最新的AndroidOreo发行说明,应用程序似乎只能注册少数隐式广播。ACTION_PACKAGE_ADDED和ACTION_PACKAGE_REMOVED不在其中。是否有接收这些广播的解决方法? 最佳答案 来自thedocs:AppsthattargetAndroid8.0orhighercannolongerregisterbroadcastreceiversforimplicitbroadcastsintheirmanifest.Animplicitbroadcastisabroadcastthatdoesnottarg

android - 解析错误 : there is a issue while parsing the package in marshmallow

我在marshmallow设备上安装apk时遇到解析错误。它在牛轧糖设备中运行良好。android{compileSdkVersion23buildToolsVersion"25.0.0"defaultConfig{applicationId"com.graymatic.gmind.mylook"minSdkVersion15targetSdkVersion21versionCode1versionName"1.4"testInstrumentationRunner"android.support.test.runner.AndroidJUnitRunner"multiDexEnabl

android - 我如何获得 Android Bundle/Packager Identifier

我正在为需要包标识符的android编写一个库我不知道如何为我正在运行的Android应用程序获取包标识符或等效项。我认为它与Intent对象有关,无法弄清楚。感谢您的任何建议。 最佳答案 您是指您的应用的包名吗?您可以使用Activity.getPackageName()。getPackageName() 关于android-我如何获得AndroidBundle/PackagerIdentifier,我们在StackOverflow上找到一个类似的问题: h

java - your.package.namespace - 应该改成什么?

我正在尝试在eclipse中为Android应用程序创建一个新项目,我将在对话框中输入一些内容,我只是想知道your.package.namespace是什么以及我将要做什么写在这里?谢谢! 最佳答案 “your.package”部分是为您的应用保留的唯一ID;我使用com.laurencedawson,因为我拥有laurencedawson.com。我倾向于使用“命名空间”来描述当前项目,因此如果我要在SO上发布应用程序,它将是com.laurencedawson.so。更正式的是documentationfromGoogle:P

java - android 7 : NullPointerException on APK installing with Runtime. getRuntime().exec

我正在尝试使用常规Runtime.getRuntime.exec()例程在android7(三星和索尼)中安装APK。安装失败,logcat中出现以下异常:09-0414:14:33.93216623-16623/?D/AndroidRuntime:Callingmainentrycom.android.commands.pm.Pm09-0414:14:33.9393695-3876/?D/PackageInstaller:installationofandroid.content.pm.PackageInstaller$SessionParams@a4d2f0efornon-cont

android - ionic 3 : more than one library with package name 'com.google.android.gms.license'

这个问题在这里已经有了答案:Error:morethanonelibrarywithpackagenamecom.google.android.gms.license(15个答案)关闭4年前。我有这个错误:Executionfailedfortask':processDebugResources'.Error:morethanonelibrarywithpackagename'com.google.android.gms.license'当我跑完ioniccordovarunandroid这是ionic信息:clipackages:(AppData\Roaming\npm\node_m

android - 在项目 'Android Package Builder' 上运行生成器 'HelloAndroid' 时出错。 sun/security/x509/X500Name

我刚刚安装了Eclipse-Classic3.7.2和androidSDK。还使用ADT插件安装/配置了eclipse。现在在执行了http://developer.android.com/resources/tutorials/hello-world.html中的步骤之后为了创建“HelloWorld”应用程序,我尝试在Android模拟器中运行该应用程序。但这是抛出一个错误Errorsoccurredduringthebuild.Errorsrunningbuilder'AndroidPackageBuilder'onproject'HelloAndroid'.sun/securi