简体   繁体   English

已安装的APK无法在本地或Play商店上使用

[英]Installed APK not working locally or on Play store

I built a hybrid Android app with HTML5 an monaca.io IDE. 我使用monaca.io IDE的HTML5构建了一个混合Android应用程序。 I uploaded the release built successfully on google play but when I install it from the store it does not work, and I cannot find the app icon on my widget, but the app is installed. 我上载了在Google Play上成功构建的发行版,但是当我从商店安装它时无法正常工作,并且在小部件上找不到该应用程序图标,但是该应用程序已安装。 That also happens when I install the application from my hard disk. 当我从硬盘上安装应用程序时,也会发生这种情况。 I don't know what is is the problem 我不知道是什么问题

<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="true" android:versionCode="" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.notechsoft.petsbook">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>
<uses-permission android:name="android.permission.INTERNET"/>

<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="Pets-Book">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="Pets-Book" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar">
 <intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <data android:scheme="tel"/>
  </intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/>
</manifest>

You need to add another intent filter to your AndroidManifest.xml 您需要向AndroidManifest.xml添加另一个Intent过滤器

This is how your new AndroidManifest.xml should look like: 这是新的AndroidManifest.xml的样子:

<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:hardwareAccelerated="true" android:versionCode="" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.notechsoft.petsbook">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>
<uses-permission android:name="android.permission.INTERNET"/>

<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="Pets-Book">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="Pets-Book" android:name="MainActivity" android:theme="@android:style/Theme.Black.NoTitleBar">
 <intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER" />
    <data android:scheme="tel"/>
  </intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19"/>
</manifest>

I basically added the <category android:name="android.intent.category.LAUNCHER" /> line in your intent-filter. 我基本上在意图过滤器中添加了<category android:name="android.intent.category.LAUNCHER" />行。 Recompile with this manifest, and this should get the icon of your app in the app drawer. 使用此清单重新编译,这将在应用程序抽屉中获得您应用程序的图标。

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

相关问题 应用在Play商店上显示“您的设备与此版本不兼容”,但手动安装了apk - App show “Your device isn't compatible with this version” on Play store but manually apk installed working Cordova Google Analytics(分析)插件在本地运行,但无法从Play商店安装时使用 - Cordova Google Analytics plugin working locally but not when installed from Play Store Android:安装APK后从Play商店重定向到Android应用 - Android: Redirect to android app from play store when apk is installed 从Play商店在设备上安装了错误的APK - Wrong apk getting installed on devices from play store APK 版本未从 Play 商店更新已安装的 AAB 应用 - APK release not update installed AAB app from Play Store 在Play商店上导入APK - Import APK on Play Store Android APK播放商店 - Android apk to play store 手动安装时 APK 文件运行正常,但从 Google Play 商店安装时无法打开 - APK file runs properly when installed manually but does not open when installed from google play store 应用程序作为 APK 运行,但通过 Play 商店发布时崩溃 - App working as an APK but when released through play store it crashes 如何调试从Play商店安装的APK(不删除已保存的用户数据) - How to debug an APK installed from Play Store (without deleting saved user data)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM