2015-08-24 336 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>