2015-08-24 288 views
1

我想在旧的Atrix上安装应用程序,在S3上正常工作。搜索论坛可能的问题是更高的SDK版本(Atrix是4.0.4)。修复显然是设置API级别。INSTALL_FAILED_OLDER_SDK科尔多瓦

<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" /> 

但是当我通过自身运行cordova run android文件更新

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="10" /> 

是什么导致了这种变化?

回答

0

中的build.gradle(模块:APP)

defaultConfig { 
    applicationId "Your app id" 
    minSdkVersion 14 
    targetSdkVersion 22 
    versionCode 1 
    versionName "1.0" 
} 

比同步您的project.it将工作

1

必须编辑config.xml中

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<widget id="com.ionicframework.pushprint617926" version="0.0.1"  xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> 
<name>app name</name> 
<description> 
    An Ionic Framework and Cordova project. 
</description> 
<author email="[email protected]" href="http://ionicframework.com/"> 
    Ionic Framework Team 
</author> 
<content src="index.html"/> 
<access origin="*"/> 
<preference name="webviewbounce" value="false"/> 
<preference name="UIWebViewBounce" value="false"/> 
<preference name="DisallowOverscroll" value="true"/> 
<preference name="android-minSdkVersion" value="16"/> <====== Changed to 10 
<preference name="BackupWebStorage" value="none"/> 
<feature name="StatusBar"> 
<param name="ios-package" value="CDVStatusBar" onload="true"/> 
</feature> 
</widget>