Share via


error launching android project

Question

Saturday, September 3, 2016 6:02 PM

hi

I'm trying to build an App for Android. The goal of my project is some kind of "demonstrator" how to call native code on Android (I do this for my company). So, I created a new project (native android project) with Visual Studio 2015 upd 3. Then I started the test device (the standard device they install with VS 2015... Android 4.4.2/19 I guess) and then I tryed to launch the app (without writing a single line of code). What I get is this:

2>The package manager failed to install the apk: '/data/local/tmp/_Test_Natel_AndroidNative2.apk' with the error code: 'InvalidApk'

What'd the best way to solve this? ... what can I try?

Rudolf

All replies (1)

Tuesday, September 6, 2016 5:31 AM âś…Answered

Hi Rudolf Meier,

According to your description, please refer to the following steps to troubleshoot your issue:

1). Make sure in your machine has installed all the cross platform components.  Refer to the following screenshot:

2). Make sure that the template you created is the Blank App (Android).

3). Has the same APP been installed in your machine? If yes, please uninstall it and try again. You could uninstall it manually or try the following command to uninstall the old package:

adb uninstall package-name

Sincerely,

Oscar

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.