Failed to attach and failed to write apk installation time

Running sample project in vs2015 on android device.
The Nvida dialogue says:

Deploying application… Error.
Failed to write APK installation time: Sequence contains more than one matching element
Launching application… Done.
Failed to attach: Sequence contains more than one matching element

The APK is actually installed, but the debugger did fail to attach.

the log is in attachment

Nsight Tegra.log (51.4 KB)

Hi tiantian20007,

Sorry for the inconvenience you met. What device do you use?

Could you share us the device info by “adb shell getprop |grep build”?

Victor

[ro.bootimage.build.date]: [Tue Oct 17 00:16:51 CST 2017]
[ro.bootimage.build.date.utc]: [1508170611]
[ro.bootimage.build.fingerprint]: [Rock/odin/odin:7.1.1/NMF26F/1508170611:user/dev-keys]
[ro.build.characteristics]: [default]
[ro.build.date]: [Tue Oct 17 00:16:51 CST 2017]
[ro.build.date.utc]: [1508170611]
[ro.build.description]: [odin-user 7.1.1 NMF26F 18 dev-keys]
[ro.build.display.id]: [NMF26F dev-keys]
[ro.build.fingerprint]: [Rock/odin/odin:7.1.1/NMF26F/1508170611:user/dev-keys]
[ro.build.flavor]: [odin-user]
[ro.build.host]: [build8]
[ro.build.id]: [NMF26F]
[ro.build.product]: [odin]
[ro.build.tags]: [dev-keys]
[ro.build.type]: [user]
[ro.build.user]: [smartcm]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]:
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [18]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [7.1.1]
[ro.build.version.sdk]: [25]
[ro.build.version.security_patch]: [2017-04-01]

Hi tiantian20007,

it seems a known issue we have fixed. you can try the latest Nsight Tegra or just set “applicaion:label” in your androidManifest.xml.

it’s caused by your application label is empty as seen from your log
2017-10-21 22:34:08.6337|INFO|Nvidia.PentaK.Utilities.RedirProcess|18-exited: code 0, finished in 62 ms

2017-10-21 22:34:08.7488|INFO|Nvidia.PentaK.Utilities.RedirProcess|19-launch: d:\NVPACK\android-sdk-windows\build-tools\24.0.1\aapt.exe “dump badging Basic-debug.apk” [D:\NVPACK\Samples\GameWorks_Samples\samples\build\vs2015All\intermediate\Basic\Tegra-Android\debug\bin]

2017-10-21 22:34:08.8204|INFO|Nvidia.PentaK.Utilities.RedirProcess|19-stderr:

2017-10-21 22:34:08.8204|INFO|Nvidia.PentaK.Utilities.RedirProcess|19-stdout:

package: name=‘com.nvidia.Basic’ versionCode=‘1’ versionName=‘1.0’ platformBuildVersionName=‘5.0.1-1624448’
uses-permission: name=‘android.permission.INTERNET’
uses-permission: name=‘android.permission.READ_EXTERNAL_STORAGE’
uses-permission: name=‘android.permission.WRITE_EXTERNAL_STORAGE’
sdkVersion:‘16’
targetSdkVersion:‘21’
application-icon-160:‘res/drawable/icon.png’
application: label=‘’ icon=‘res/drawable/icon.png’
application-debuggable
launchable-activity: name=‘com.nvidia.Basic.Basic’ label=‘Basic’ icon=‘’
leanback-launchable-activity: name=‘com.nvidia.Basic.Basic’ label=‘Basic’ icon=‘’ banner=‘res/drawable/banner.png’
feature-group: label=‘’
uses-feature-not-required: name=‘android.hardware.gamepad’
uses-feature-not-required: name=‘android.hardware.touchscreen’
uses-feature-not-required: name=‘android.software.leanback’
uses-feature: name=‘android.hardware.screen.landscape’
uses-implied-feature: name=‘android.hardware.screen.landscape’ reason=‘one or more activities have specified a landscape orientation’
main
supports-screens: ‘small’ ‘normal’ ‘large’ ‘xlarge’
supports-any-density: ‘true’
locales:
densities: ‘160’
native-code: ‘armeabi-v7a’

victor