Package changes not taken, even after new name in Manifest - android

i made a little mistake, i published(started the process, now its waiting to publish) my app name with the first package i created, so i chose to change everything and publish again with the new name, but google play keep saying that the OLD is already in use, but i cant understand, i already made the changes and dont want to use the old...
my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.HereComes.theNewPaCkage" >
but it keep saying that the old com.HereComes.TheOldPaCkage is already in use, if i open the project folder and try to search for the term TheOldPaCkage nothing shows, doesnt it mean that there is nO reference to the old package? why google keep saying that i want to use the old...
is there any other file i have to change?

I have faced this before.
In it's solution, what I have done is just remove the previous package from Google Play, then I tried to upload new one.
After that my problem was solved.
You can try this way.

Related

Why is it highlighted in red here - <uses-permission android:name="android.permission.SET_TIME"/>

I am trying to sign an APK file, that is, add permission to change the system. In particular, the time change on android. I follow the example https://russianblogs.com/article/14971784004/. But I have this highlighted in red in the Manifest file - android:name="android.permission.SET_TIME". So I can't even set a signature. I didn't find any answers anywhere. Tell me, please, what should I do?
I think you are trying use
reverse engineering
First for that you must sign application with key , so please read about apk tool

How do I use multiple packages, such as location and maps?

First of all sorry, I'm not familiar with the terminology.
I'm following the official Android tutorial and I'm already stuck on the first section of "Making Your App Location-Aware".
I'm following from the very first tutorial and I'm stuck on the first step.
This is what the tutorial says to do,
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.gms.location.sample.basiclocationsample">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
</manifest>
but I already have,
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package=com.example.user.myapplication.MainActivity">
I'm confused as what to do. I've tried just putting the package separately, e.g.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.gms.location.sample.basiclocationsample" >
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<activity android:name="com.example.user.myapplication.MainActivity">
But even then in MainActivity.java apparently FusedLocationProviderClient has an error - it says 'class' or 'interface' expected.
How would I go about fixing this, and how would I use, say 3 packages?
CommonsWare's answer is correct. However, his answer doesn't help you much. What the tutorial MEANS is to add the line:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
right after the line:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="YOUR_PACKAGENAME_HERE" >
You don't need to change your package name to fix the problem, just replace com.google.android.gms.location.sample.basiclocationsample with your current package name com.example.user.myapplication.MainActivity
Warning! If you plan on publishing your app to the Play Store, use some thing other than com.example.user.myapplication.MainActivity
A great example of a good package name for you is com.michaelluong.myapplication
How would I go about fixing this, and how would I use, say 3 packages?
You can't. An app has one package name (a.k.a., application ID).
Generally, when using tutorials, you have two choices:
Follow them to the letter, or
Do your own thing in parts, relying upon your experience to bridge between what the tutorial suggests and what you are actually doing
In your case, I suggest you choose option #1. What you have already has issues (while com.example.user.myapplication is a fine package name, com.example.user.myapplication.MainActivity is an odd choice at best).
If you create a new project, when it asks for the package name, fill in com.google.android.gms.location.sample.basiclocationsample to match the tutorial.
However, do bear in mind that the "tutorials" that you are following are incomplete, skipping steps along the way. Despite their name, most of those "tutorials" are not suited for newcomers to Android.

Uploading Apps to the Play Store

So I messed up pretty hard and forgot my password key store password so I ended up having to make a new application and keystore. But when I tried uploading the new apk file it said I couldn't do that because I already had an application with the same package name. So what I'm wondering is is there any easy fix to this? Can I just change the applicationid in the gradle file?
EDIT: Surprisingly enough just changing the applicationid and resyncing it worked! Thanks for the help though.
You have to provide a unique packageName, which is defined in your AndroidManifest.xml.
Your best (and fastest) solution is to use the Refactor > Rename option - within Android Studio/Eclipse IDE's - to change your project package structure to something (slightly) different.
By doing this, the IDE should take care of changes to your AndroidManifest.xml file as well.
Good Luck!!!
On Android Studio:
On Eclipse:
you must need to change the main package name of your application which must be unique . unique means with same name no any application is uploaded on playstore then only your issue will get resolve
see your problem is you forgot password of your keystore certificate see why that certificate is uses in android is to update the application every time you need to pass password to that file but unfortunately you forgot it so you have no choice other than changing pakcage name also your application will consider as a new application on playstore your previous application and this current one will be seprate application

Change Manifest file using code?

I am working on app where I required to change manifest file.
I saw long before to change package name at time of sign apk, but not able to find that also.
so is there any way to change Version Code, Package Name and Pnermission using code..
As said here the possible changes at runtime are very limited. At least for standard no-root-required software (Not sure though if root privileges really help for that matter). It's hard to guess what you're trying to accomplish but after all the manifest was made to fix such things as version code, package name and permissions before your app is compiled.
So please correct me if I'm wrong, but I think what you are trying to do is not possible.

Android in-app billing example, wrong source files?

I downloaded the Android in-app billing example and imported it into Eclipse. After import I see some strange errors.
There is a source file AccelerometerPlay and the string resources in the Dungeons.java file are not existing.
It seems that the download got the wrong resources. Has anybody seen this and knows how to get the right code?
Of course I can put in my own strings to get rid of the error markers, but I cannot say if something else is missing. So I'd rather have a correct version of the code.
How can I take over this question? It is not resolved for me and I can not up-vote it or comment on it stating this still persists for me. Duplicating the question can't be the solution neither.
More details:
The Dungeons example is not in "Extras/Google Market Billing Package" as shown in the screenshot in their tutorial but in "Extras/Google Play Billing Library"
The version of this is "revision 2".
After removing it via the Android SDK Manager various times and adding it again to re-create the project from source within Eclipse, I now did check the "create Activity .Dungeon" checkbox in the last step and think that did the trick. I'm not eager to verify this assumption ending up without a broken project again though.
In Eclipse and Intellij, if you create a new app over those existing sources (and presumably have it create a default activty like "MyActivity") it will overwrite some of the billing files namely the main layout and the strings file.

Categories

Resources