we are using ionic3 framework for building mobile apps. we are getting the following error while uploading apk to the playstore.
Upload failed:
You need to use a different version code for your APK because you already have one with version code 98.
currently we have the following versioncode and versionname in playstore
android:versionCode = "8"
android:versionName = "1.9"
But if we try change android:versionCode to 9 and android:versionName to 2.0 , we are getting the above error.
AndroidManifest.xml
<manifest xmlns:tools="http://schemas.android.com/tools" android:hardwareAccelerated="true" android:versionCode="9" android:versionName="2.0" package="com.global.upi.app" xmlns:android="http://schemas.android.com/apk/res/android">
Apparently, you have already uploaded a version with versionCode=98 so you'll need to upload a version with versionCode=99 at least.
versionName should not matter much as far as uploading goes.
Related
After creating a WDP from an aspnet solution, the [project name].deploy.cmd file returns this error when executed:
Error Code: ERROR_SITE_DOES_NOT_EXIST
More Information: Site 'freedomstoreusa.azurewebsites.net' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST.
Error count: 1.
My objective is to deploy the package to this site as if it were publishing to azure from visual studio 2017. What is causing this issue, what can resolve it and what are some alternatives to packaging and deploying a website?
Here are my settings in the package wizard:
what can resolve it and what are some alternatives to packaging and deploying a website?
I build and package the web application project, and use MSDeploy.exe to deploy the web application, which works fine on my side.
Command:
TestSite.SetParameters.xml
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<setParameter name="IIS Web Application Name" value="{app name}" />
</parameters>
I came here with the same problem but the image in the question and the answer from Fei Han solve my problem I was creating a File System Package not a Web Deploy Package which will create App.SetParameters.xml and the App.zip in the selected folder it also will ask for the app name an then you can use that auto generated file for the param -setParamFile:
I created a Node.js project for an protractor test environment using the Node.js Tools to test a web application on a team foundation server. The test project and the web application are in one solution file. However, if i want to deploy the Node.js project on the tfs, it is not able to find the pubxml file located in the web application project.
Error log:
12>CoreCompile:
Creating directory "bin".
Copying file from "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Node.js Tools\Microsoft.NodejsTools.WebRole.dll" to "bin\Microsoft.NodejsTools.WebRole.dll".
ValidatePublishProfileSettings:
Validating PublishProfile(TestProfile) settings.
12>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4364,5): error : The value for PublishProfile is set to 'TestProfile', expected to find the file at '<PATH>\TestProject.Web.Protractor.Tests\__profiles\TestProfile.pubxml' but it could not be found. [<PATH>\TestProject.Web.Protractor.Tests.njsproj]
12>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Microsoft.Web.Publishing.targets(4371,4): error : PublishProfile(TestProfile) is set. But the $(WebPublishMethod) does not have a valid value. Current Value is "". [<PATH>\TestProject.Web.Protractor.Tests.njsproj]
12>Done Building Project "<PATH>\TestProject.Web.Protractor.Tests.njsproj" (default targets) -- FAILED.
After analyzing the Microsoft.Web.Publishing.targets i found the PublishProfileRootFolder variable to change the search path for the pubxml file.
First i tried to place the variable inside the MSBuild arguments. However, this raised problems with other test projects and i was not able to use variables like the $(SolutionDir).
I ended trying to use the PublishProfileRootFolder variable inside the project file and this works now:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
...
<PublishProfileRootFolder>$(SolutionDir)PathToWebApplication\Properties\PublishProfiles</PublishProfileRootFolder>
</PropertyGroup>
...
PS: Additionally you need a Web.config file, placed in the project root of the test project:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<customErrors mode="on"/>
<compilation debug="true"/>
</system.web>
</configuration>
When I tried using Picaso and OKHttp together in to app/build.gradle this issue started. Please help me to resolve this issue. Thanks you in advance.
Multidex support for **Android 5.0 and higher**
Step 1 : add MultidexEnabled true in app/build.gradle
defaultConfig {
...
minSdkVersion 14
targetSdkVersion 21
// Enabling multidex support.
multiDexEnabled true
}
**Step 2 :**
dependencies {
compile 'com.android.support:multidex:1.0.0'
}
**Step 3:** in your manifest add the MultiDexApplication class from the multidex support library to the application element.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.multidex.myapplication">
<application
...
android:name="android.support.multidex.MultiDexApplication">
...
</application>
</manifest>
For More details about this please refer Google Developer site:
[Click Here][1]
I hope this help.
[1]: http://developer.android.com/intl/es/tools/building/multidex.html
I am following this android developer page for the creation of custom attributes for an app. Everything is going fine and I am able to compile and see the results also.
But the part which is giving issue is IDE.Android Studio is complaining for unexpected namespace custom. Is there any way to disable/hide this error message? This is very annoying.
Even with this error, however, I am able to compile and run the app.
I followed follwing steps.
1) Created res/values/attrs.xml file and added
<?xml version="1.0" encoding="utf-8"?> <resources>
<declare-styleable name="FragArguments">
<attr name="max_allowed" format="integer"/>
<attr name="header" format="string"/>
</declare-styleable>
2) Trying to use in my mainlayout file's fragment tag
<LinearLayout xmlns:custom="http://schemas.android.com/apk/res"
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1">
<fragment android:id="#+id/msg"
android:name="org.android.fragment.MessageFragment"
custom:max_allowed="85"
custom:header="#string/header"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
</LinearLayout>
3. Applying the custom attributes through code overriding the onInflate() method of fragment
#Override
public void onInflate(Activity activity, AttributeSet attrs, Bundle savedInstanceState) {
super.onInflate(activity, attrs, savedInstanceState);
TypedArray typedArray = activity.obtainStyledAttributes(attrs, R.styleable.FragArguments);
max_allowed = typedArray.getInt(R.styleable.FragArguments_max_allowed, -1);
header = typedArray.getString(R.styleable.FragArguments_header);
typedArray.recycle();
}
I just figured out the solution.
The issue ID MissingPrefix tells lint to only scan for XML attributes that are missing the Android namespace prefix.So we can do this two ways:--
Canissue the following command to scan the files under the main project directory and its subdirectories.
lint --check MissingPrefix myproject
In android studio create a lint.xml file with following content and add in app directory.
<?xml version="1.0" encoding="utf-8"?>
<lint>
<issue id="MissingPrefix" severity="ignore"/>
</lint>
Thanks to #Nicks answer. You can also add following lines to the build.gradle file, inside android {} scope:
lintOptions {
disable 'MissingPrefix'
}
I am unable to run app from android studio to my samsumg phone running android 2.3.6. I am getting Application installation Failed popup refer below screenshot.
when I click on OK I get below error in log
Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall my.package.name
Unknown failure
I got in this trouble after adding Google Cloud Module called "App Engine Backend with Google Cloud Messaging".
This is exactly same problem described in one of stack overflow questions here
I tried the accepted answer.
Ran dex-method-counts application I got "Overall method count: 24474" in terminal. I dont understand what to do next?
(Note : The same application is running on my other device running on kitkat.)
Please help to resolve this issue. I am struggling from past two days. I know there are many similar questions but nothing helped me.
Built--> Clean is not working.
Here is my build.gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "my.package.name"
minSdkVersion 9
targetSdkVersion 19
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile files('libs/libGoogleAnalyticsServices.jar')
compile project(path: ':gcmAppEngineBackend', configuration: 'android-endpoints')
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.google.android.gms:play-services:7.0.0'
}
Thanks in advance!
This usually happens because your device doesn't have enough space in memory.
Delete some apps and try again
When i got this error, i was using a Nexus 4 in the AVD-Manager. By default this device was created with 500MB internal storage.
I increased the storage to 2048MB and the "stale dexed" error was gone.
To increase the internal Storage:
Go to ADV-Manager
Select the Edit Button of the corresponding device under "Actions"
Click "Show Advanced Settings"
Increase your internal Storage
In case it's an Android Emulator giving you a "stale dexed" message, this helped for me on a Mac:
stop emulator
cd ~/.android/avd/[emulator name].avd
rm *.lock
wipe emulator
start emulator
I solved this by Wiping data .
Android Studio -> AVD Manager -> Actions -> Wipe Data
It seems like your emulator low on disk space. But after you increase your disk space you still get error.
I faced the same problem, increase disk space and do factory reset for the emulator worked as well for me. To reset your emulator go to Settings -> Backup and Restore inside the emulator then reset.
Disable Instant Run.
Android Studio -> Preferences -> Instant Run
Also I have the same problem. To make it work I had to remove "third party library" from dependencies.
Or try this: https://developer.android.com/tools/building/multidex.html
Replace this 'compile files('libs/libGoogleAnalyticsServices.jar')' with this 'com.google.android.gms:play-services-analytics:8.3.0'