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”?


[]: [Tue Oct 17 00:16:51 CST 2017]
[]: [1508170611]
[]: [Rock/odin/odin:7.1.1/NMF26F/1508170611:user/dev-keys]
[]: [default]
[]: [Tue Oct 17 00:16:51 CST 2017]
[]: [1508170611]
[]: [odin-user 7.1.1 NMF26F 18 dev-keys]
[]: [NMF26F dev-keys]
[]: [Rock/odin/odin:7.1.1/NMF26F/1508170611:user/dev-keys]
[]: [odin-user]
[]: [build8]
[]: [NMF26F]
[]: [odin]
[]: [dev-keys]
[]: [user]
[]: [smartcm]
[]: [REL]
[]: [REL]
[]: [18]
[]: [0]
[]: [7.1.1]
[]: [25]
[]: [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’
application: label=’’ icon=‘res/drawable/icon.png’
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=‘’
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’
supports-screens: ‘small’ ‘normal’ ‘large’ ‘xlarge’
supports-any-density: ‘true’
densities: ‘160’
native-code: ‘armeabi-v7a’