[Q] Too new google play version? - Java for Android App Development

I have created an android application using Android Studio. I have this code in the manifest file:
<meta-data android:name="com.google.android.gms.version"
android:value= @integer/google_play_services_version"/>
and the value for @integer/google_play_services_version is 520800 (value added automatically when I linked the google play library. No hardcode there).
This is the link between the library and the project
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:19.+'
compile 'com.google.android.gmslay-services:+'
}
also auto generated when I have added the google play library from the menu.
The application works fine, bun when I generate a signed APK and try to upload it to the google market it gives me an error sayng that I am trying to upload an APK which uses google play version 5208000 and I should use version 5100000 or lower.
I have tryed to google_play_services_version into 5100000 but then the application stops working form the begining.
How should I make my app runnable and valid for uploading on the market?

I use
"compile 'com.google.android.gmslay-services:5.0.89'"
located on ~/android_sdk/extras/google/gogle_play_services/libproject/google-play-services_lib/AndroidManifest.xml
"android:versionName="5.0.89-000""

Related

HOW TO translated a APK to your language

Hi here i am going to do a tutorial to made know people how to tranlate a APK to their language or other languages.
Required:
A program for extracting and compiling APKS (In the tutorial we are going to used apktool)
WINDOWS/LINUX/MAC
The APK
An take a rest
HOW TO:
First donwload apktool:
https://code.google.com/p/android-apktool/
Windows:
Download apktool-install-windows-* file
Download apktool-* file
Unpack both to your Windows directory
Linux:
Download apktool-install-linux-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
Mac OS X:
Download apktool-install-macos-* file
Download apktool-* file
Unpack both to /usr/local/bin directory (you must have root permissions)
When you have the executable know you can run the comand in all the directories of your computer.
HOW TO extract apk
Go to the rute were it is the apk with cd.
If it is a system apk you need to do this:
Pick up framework-res.apk of your rom.
and type this:
apktool if framework-res.apk
If it is a normal apk do not do this step
Then tipe this:
apktool d name of your apk
It will started to descompile it.
When it done it will create a FOLDER call with the name of the APK.
Go to it.
Enter in this rute: res/values/ and there most of the time is string.xml doccument to translate.
copy it create a FOLDER in res/ name it values- the initials of your country for example. Spain is es
Then in that folder paste the string.xml, open it with a XML editor or any other.
Then translate to your language.
When you finish translating it.
Type this comand:
apktool b name of folder
Wait it will start to compile.
When it finnish go to NAME of the folder/ dist/ and there will be the application you translate.
If it need sign used APK-MANAGER to sign it.
All done take a rest.
how to translate? I did try with google translate but it does not translate properly ...?
mrjoy said:
how to translate? I did try with google translate but it does not translate properly ...?
Click to expand...
Click to collapse
Maybe you can find something useful in section Marketing, Distribution, and Analytics > Localization
http://forum.xda-developers.com/marketing-analytics/localization
Some interesting tools are listed in discussions, and there are also some volunteers there...
Hello,
I've exactly done what you described, tried with APKTool and Multitool. I carefully watched out not to touch anything else but the XML I'm wanting to adjust. After I did my changes I recompiled, signed and installed, which was no problem. Unfortunately the app is not running properly anymore, online functions don't work etc.
So I tried not to change anything, just decompiling and immediately after I recompiled the apk and signed it. Same thing, I can easily install but it doesn't run properly. Is it possible the app only runs with the developers private key? Can anyone help me on this please?
Thanks
i tried apktool to translate an apk file but after decompile there is no any res folder to find strings.xml file?
i did copy the strings.xml file from res/values folder & translated & then pasted to new folder res/values-en according to the country & then i recompiled the apk file but it still shows in same old language?
---------- Post added at 05:51 PM ---------- Previous post was at 05:49 PM ----------
Benko111 said:
Hello,
I've exactly done what you described, tried with APKTool and Multitool. I carefully watched out not to touch anything else but the XML I'm wanting to adjust. After I did my changes I recompiled, signed and installed, which was no problem. Unfortunately the app is not running properly anymore, online functions don't work etc.
So I tried not to change anything, just decompiling and immediately after I recompiled the apk and signed it. Same thing, I can easily install but it doesn't run properly. Is it possible the app only runs with the developers private key? Can anyone help me on this please?
Thanks
Click to expand...
Click to collapse
Do u successful to translate app?
No, there's no way if developer signed with his private key. Though I did stagger over one thread at stackoverflow.com where someone posted a method recompiling and signing with a public key. Didn't follow it in the end, sometimes it pisses me off how devs from normal paid apps make it impossible to just change the strings.xml but then coming to our translation thread to plea for free translation. Mostly when I did translate an app which I like I send my strings.xml to the dev anyway. It would be much more if I wasn't blocked from running the app after signing. That all said, of course I understand the importance of piracy protection, just don't know if this is the right way.
Sent from i9300 running SlimKat OS
Benko111 said:
No, there's no way if developer signed with his private key. Though I did stagger over one thread at stackoverflow.com where someone posted a method recompiling and signing with a public key. Didn't follow it in the end, sometimes it pisses me off how devs from normal paid apps make it impossible to just change the strings.xml but then coming to our translation thread to plea for free translation. Mostly when I did translate an app which I like I send my strings.xml to the dev anyway. It would be much more if I wasn't blocked from running the app after signing. That all said, of course I understand the importance of piracy protection, just don't know if this is the right way.
Sent from i9300 running SlimKat OS
Click to expand...
Click to collapse
where is that thread to sign apk with public key on stackoverflow.com website?
How can make apk auto select English language only
But apk have multi language
And apk select languag by (default system language)
Or I want change number only
١٢٣٤٥٦٧٨٩٠ to 1234567890
In all language
1234567890 is default number only
Thx...very useful

[SOLVED] Compile mobile APK containing wear APK

Hi! I made a watchface but I can't achieve compiling both packages for publishing at Play Store, I looked up at Android Wear SDK documentation but I'm doing something wrong.
EDIT: SOLVED I forgot to set the same permissions in both manifests

License check timed out (Expansion file won't download)

Hello!
I have a problem with my app that is using Expansion file. I've finished developing the app and I've uploaded it to Google Play as a Beta. When I download the app, obb files download with it so there's no probelm so far. But then I deleted the obb file and tried to download it manually with an app to see if the Downloader Library works.
That's when the problem begins. The app won't download the Expansion file itself because it says that "the resources were not found".
I checked LogCat and i think there's an issue with a license because at the time when download should begin, this appears in the LogCat:
08-20 15:15:15.437 27600-27600/? I/LicenseChecker﹕ Calling checkLicense on service for com.mhacinapps.sleepwithnaturesounds
08-20 15:15:15.437 27600-27600/? I/LicenseChecker﹕ Start monitoring timeout.
Click to expand...
Click to collapse
Any idea what could be causing this?
I literally copied Google's sample code for Expansion downloading so I don't know how there can be any trouble. I've edited the code to suit my app, I've iserted my own Base64 public key.

[Q] Instal 2 same apps on a single device

I want to install 2 Opera Mini or any other apps in a single device. I know there are may modded apps. But I want to learn it by myself..
So here are the stuffs that I did.
1. I modded the AndroidManifest.xml and changed package name i.e. "com.opera.android.mini"
2. I went to res/values/strings.xml and changed "app_name" string. i.e. "Opera Mini"
3. Signed the apk.
I can install the apk and run it flawlessly. But the problem is that whenever I install modded apk first then orginal apk and vice versa, It shows "Application not Installed" . Even when I install apk from Play Store, I get certificate error or something like that!
Can anyone guide me? Thanks for help!
This was how I modded apk: https://www.youtube.com/watch?v=GcsvNLoCUzQ

Decompiling and recompiling Maps APK

Hi,
I wanted to decompile, modify XMLs only of the Google Maps app and add one asset, and recompile the APK (only for personal use). I don't need to edit any of the source code. I already tried this process but the package will not install on my Galaxy S5. I just added an extra permission (may not be used since the code doesn't use it) and when I try to install the new APK it tells me that it requires the new permission (which is good), but when I click 'install' it tries to do it but ultimately says "app not installed."
Does anyone have any idea as to what is going on? I understand that once I sign the package with my own keystore, the Google API will stop working. I tried to create my own Google API key that is linked to my keystore, but that didn't seem to resolve the issue. I would appreciate any help from someone who has done this previously.
Thank you very much!
i'll do and tell you the results ...
Sent from my MI 4LTE using Tapatalk

Categories

Resources