Error when uploading apk to playstore, apk name not valid - android

I developed my very first android app but when i'm uploading to the Play Store I get the following error:
error
For those not speaking dutch," upload failed, the name of your apk has to be the following format 'com.example.myapp'. I'm guessing I didn't do this but I have no idea how to fix this. I'm using Android Studio 0.6.1
I did search the web but couldn't find a fix.

It is the name of the package of your app i.e bundle identifier. Also example cannot be used in it. For more info: Android - Package Name convention

change the package name
(com.example) is invalid.
use (com.xyz).
xyz means any thing u like but not example

Related

Invalid application's package name in 'AndroidManifest.xml React native

I am trying to set up the app for the play store and I change the package name in the AndroidManifest.xml file. While making the app build I am getting a warning. I try to find the solution but did not get the right answer.
warn Invalid application's package name "com.bilalyaqoob.Animals" in 'AndroidManifest.xml'.
bilalyaqoob is my name and Animals is app name.
Can you please me what I am doing wrong?
You must changes all package name.
If you use Visual Code you can do this.

WeChat API failing registration in app

I'm developing an application for the Chinese market which will allow our users to login using WeChat. We have applied for a mobile application on https://open.weixin.qq.com and it passed.
I used the example project of WeChat to see how it works, and got it working fine (WeChatSDK_sample_Android).
Then I tried using our received AppID and have failed since then. When we try to call the register action we see following error pop up in the logcat:
Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}
The Package Name in the manifest and the applicationId in our build.gradle file are exactly the same as the package name we put in the wechat form. We first picked the SHA256 signature, but since then also tried the SHA1 and MD5 signature to see if it works (both with and without ':', all in UPPERCASE).
I also tried the chinese application that was referenced multiple times that can be found here https://github.com/mike623/cordova-WeChat-meteor-sharing/blob/master/README.md
I'm completely out of thoughts what I can change now to see if it works.
Here is where I got the appId from (where the blue is now):
Do you have any idea what I can try, or what I did wrong?
Kr,
Thomas
I also encountered this problem before. It is caused by incorrect Wechat app signature. Because the signatures of debug and release version are different, so that's why Wechat return
Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}.
How to solve this problem?
Download generate signature tool which is provided by Wechat:
https://res.wx.qq.com/open/zh_CN/htmledition/res/dev/download/sdk/Gen_Signature_Android2.apk
Open the tool in your Android device or simulator, then enter the package name of your app into the tool and get signature:
At last, check the signature in step 2 with the signature you submitted in the Wechat Open API Platform. If they are different, pls change the signature or build a correct version APK.

Failed to run aapt dump badging:AndroidManifest.xml is corrupt

I am new to android.
i get this error when i try to upload update of my app to google play.
Failed to run aapt dump badging:W/ResourceType(19538): Bad resource table: header size 0x708b or total size 0x2f2432a is larger than data size 0x1ce1c
ERROR: AndroidManifest.xml is corrupt
i tried ALMOST VERYTHING google fixes.but nothing works.
please help.
It gave me that 'uploading in debuggable mode' thiny too but i managed to fix it.
sorry about my bad english.
I went through the same problem recently (with the very similar error message) and I also had a lot of trouble to solve, but finally I got it like this:
I used the PhoneGap Builder to generate the APK (so I recommend using the same one); Remembering that to test manages the APK with the same blank key (it's the default markup);
After generating, I used Apk-Signer (https://shatter-box.com/knowledgebase/android-apk-signing-tool-apk-signer/) to generate the key (.keystore) - this package serves, too , To sign and align the application; However, for that case I used ONLY to generate the key;
Go back to the Phone Gap, in the Android options, select 'add a key ...', then select your keystore generated in APK-Signer, and activate the rebuild;
Ready! Now just download the APK, go to google play and be happy.
I ran into a similar problem not so long ago it turned out to be an issue with #+id
A similar question has been asked before and got me through my problem, I will link the post as it is very informative.
Android style Resources compile (aapt) failing : Bad resource table: header size 0xc
Hope this helps you, wish you the best of luck.
I'm new to android too, and I had the same problem, and what worked for me was as simple as :
Zipalign the apk file by a tool called "Advanced APK tool" (download it from xda forum)
then reupload apk file to store without any problem detected,
Best of luck!
Try using a latest version of aapt, from your Android SDK directory,
<Android_SDK_directory>/build-tools/<build_tools_version>/aapt

Getting error of parsing the package during updating my new version of apk

Android Experts, I have installed signed apk (version 1.6) and on my server I've uploaded apk( version 1.7). Now I am facing problem during Update my apk from server.. I also got Dialog box for Updating but at the end I am getting error as
"Parser Error, There is a problem parsing the package." . I found some solution from some links but it doesn't work.
I am waiting for your suggestions, any ideas and your solution.
Thank U.!
You can check following things in your code
1. Already installed Apk name and updated apk name should be same.
2. Both Android Manifest contain same android:minSdkVersion value.
Yeppiee... finally I got my solution.. Actually I put wrong file path during Updating code on "onPostExecute".. So thts why I could not Update my apk and was getting "Parser Error, There is a problem parsing the package"
And One more thing If U r update your apk from server U must have following things:
- installed Apk name and updated apk name should be same.
- Both Android Manifest contain same android:minSdkVersion value.(Here My Android Tablet 4.0.3 and I put minSdkVersion:14)
- And Last If U r using asp.net U must Add .APK MIME Type to IIS - Microsoft Server Support. In IIS there needs to be a MIME type added to allow IIS to support the .APK file type.
Check this link

changing the laucher2 package name android

I am trying to implement my own launcher (making some modifications to the launcher provided by google ). But since i cant remove the default launcher i renamed my package name and everything . Initially the package name was com.android.launcher2 . I changed every instance it to com.rohit.grid . Now if I run it i am getting this error 'Re-installation failed due to different application signatures' .Now the manifest file has some something called com.android.launcher in the permission tags & in the packge name . If i replace it with com.rohit.grid I will get errors in xml files about some resource being not resolved.
I tried cleanoing the project, fixing its properties & everything . But it dint help .
Somebody plz get me out of this problem .
Thanks in advance.
Regards,
Rohit
I think 'Re-installation failed due to different application signatures' means that the installer is trying to install an APK with the same name that an installed one, but the problem in this case is that the installed is signed with a different key than yours.
Instead of modifying your manifest try to rename the project and then reinstall.

Categories

Resources