Unable launch instant app from AS on phone - android-instant-apps

I want to debug my instant app from the android studio, but cannot:
try using the default configuration for the instant app, but get this
try using terminal by ia run instantapp-debug.zip (ia - jar from extras folder) or adb install-multiple -r -t --instantapp *.apk, but in both cases get the error db: failed to install \extras\google\instantapps\tools\apks\release\supervisor_armeabi-v7a.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
can anyone help me this it?
Versions: Android Studio 3.1.3, gradle plugin 3.3.0-alpha02, gradle version 4.8, ia sdk 1.3.0
PS: instant app published and work fine in store (now in an internal test)
PS2: ia can be deployed to another phone. So the problem only with a specific phone.

For anyone else who runs into this issue, make sure you have the newest version of the Google Play Instant Development SDK (at least SDK 1.5).
You can find it in the Tools > Android > SDK Manager > SDK Tools. Check the box next to the Google Play Instant SDK and apply the upgrade.

Related

how to update Google Play service on Emulator android studio

I got the Key and set restrict, but I still cannot open map on the Emulator. On the build.gradle, I saw that the google play service is 9.8.0 now, and I think this is the newest one. However, when I run the sample-app, it say I need to update Google Play service?
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services-maps:9.+'
}
I check on the Android Emulator that it doesn't have Play store. Is it the missing one? I follow this link
https://developers.google.com/maps/documentation/android-api/start#step_2_install_the_google_play_services_sdk
to install Google Play services but I cannot found anything that can help. My Android studio version is 2.2.2.
I download the GooglePlayServices apk file (com.google.android.gms-9.8.77-440-135396225-APK4Fun.com), I dragged and dropped it into emulator to install, but it has error
Error: INSTALL FAIL INCOMPATIABLE
W/GooglePlayServicesUtil: Google Play services out of date. Requires 9877000 but found 9683470
I need your help.
After 3 days of searching. I found out that the Maps is unavailable to display on Emulator this time. All we have to do is run app on physical device and it will work.
You need to change on build.gradle for the following:
compile 'com.google.android.gms:play-services:9.0.2'
First, try to check your SDK Manager if the Google Play service there is updated. Also, try to open the stand alone SDK Manager and update the Android SDK Tools, The Android SDK Platform-tools and Android SDK Build-tools.
To update the Google Play service in the emulator itself, check this SO question. It will explain you on how to do this.
Another possible reason for this issue if you uses play-services:9.8.0 is found in this thread. It is stated here that the updated Android tools (which contains the Android Emulator system image) aren't out yet. So in the meantime, try to use downgrade version of play, service instead of 9.8.0.
For more information, check this documentation on how to setup Google Play Services
In the Android SDK Manager, you must install "Google APIs (x86 System Image)" under "Android 4.4.2 (API 19)". Quit Eclipse and restart it.
Then create a new android virtual device in AVD manager and choose "Google APIs x86 (Google Inc.) - API Level 19" as target. Check "Use Host GPU" to ensure the drawing of the map will be accelerated.
That's it, this new emulator will have Play Services preinstalled and it will run faster because it's a x86 image.
Yeah, Thank you guys. I can make it work on Emulator now. I use the
compile 'com.google.android.gms:play-services-maps:9.6.0'

Apache Cordova not Allowing me to run in visual studio

Every time i try to create a new app ( trying to look at cross platform apps) in visual studio I get this error:
I have installed the android SDK , is there something else I should be installing?
Thanks
It seems you installed the android SDK but didn't run it to install the platform tools and the SDK APIs.
Run the "android" command on your computer, it will start the android SDK manager.
Then you have to install The android SDK tools and android platform for at least SDK 19.
One quick way is to just click the install button on the bottom right of the window, it should install automatically the latest SDK tools and paltform tools.
If you're short on disk space I recommend you uncheck all that's not usefull if you only want to use Cordova and not plan to do native dev :
the samples
the system images (unless you want to use the emulator, in this case just install one, don't need all)
the documentations
This is simply telling you that the x86 emulator system image is missing. If you do not plan on using the Android Emulator or will only be using an ARM image, you can ignore this warning. We're working to ensure messaging is more nuanced in this area in the future.

Issue in installing Android platform 2.2

I am new to titanium, i already set Android sdk its working fine with my eclipse indigo. I mean i can able to launch android 2.2 google api emulator in that IDE. But In titanium it showing error message Items required An Android SDK is missing.Titanium requires Android platform 2.2 I have follow this post Titanium Studio cannot find Android SDK and fixed some path issues. But still i am getting same error. Need guidance to set up environment.

Tips/help to debug no apk file

My environment :
Eclipse sdk 3.7.2
Worklight pluin 5.0.5
Android sdk 2.2
First I tried a simple Hello World, everything works fine, android native project was created and I see the corresponding apk file was generated after a build and deploy.
Next I imported a sample project, successfully got it run on the test (localhost) server, able to see the expected result on the android Mobile Browser Simulator but the problem now is I am not seeing the corresponding android apk file got generated (the android native project was created). No errors on the logs, Any idea what could be the problem? How one debug such a problem.
APK will be generated under \bin\ folder once you run your app for the first time.
Connect your Android device to dev machine via USB cable (assuming you got Android SDK etc installed), right click on Android project and do Run as->Android app.
The app will be installed and started on Android device. APK will be generated in \bin folder.
In general, you don't need the device, same thing can be done with emulator.
You can also do an export on the android application project. This is what you would do if you are looking at doing some key signing. This is the way you would want to export it if you are uploading to Google play or an enterprise app store.
Keep in mind, Worklight doesn't build your .ipa, .apk, or etc. It builds you compile ready resources. It will build you the folder structure and the project layers needed to build in the corresponding Native Environment (for apple, you would export to xcode, build it, and run).

Titanium Studio My Application does not launch in Android emulator

I am new to Titanium studio and bothered by a problem: I installed Titanium sdk 1.7.1, android 2.2,android 2.1 updates on mac 10.6.6 and I am able to successfully launch android emulator but emulator does not launch any of my application even kitchen sink example..
[INSTALL_FAILED_MISSING_SHARED_LIBRARY] - this error says that application tries to use libraries, that your system doesn't contain. In most cases it tries to use Google API's (and KitchenSink too). So open 'tiapp.xml' in your project, click 'configure...' link and under 'Android' section choose android version with Google API's in 'Default Android SDK' text box. If no version with Google API's - install it using AVD.