alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 602 forks source link

[Android] Failed to create to SampleApplication! #1109

Closed coding-yogi closed 4 years ago

coding-yogi commented 5 years ago

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.

Briefly summarize your issue:

Sample App Creation fails on Android

What is the expected behavior?

App should have been up and running successfully

What behavior are you observing?

below is the log, highlighted few issues I see

2018-12-02 02:22:26.884 [ 1] I sdkVersion: 1.10.0 configFile /data/local/tmp/alexa/AlexaClientSDKConfig.json Running app with log level: DEBUG9 2018-12-02 02:22:26.928 [ 1] 0 ConfigurationNode:initializeSuccess 2018-12-02 02:22:26.932 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating Equalizer configuration 2018-12-02 02:22:26.932 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating default Equalizer state 2018-12-02 02:22:26.932 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating Equalizer configuration 2018-12-02 02:22:26.932 [ 1] 1 InMemoryEqualizerConfiguration:validateConfiguration::Validating default Equalizer state 2018-12-02 02:22:26.974 [ 1] 5 AndroidSLESMediaPlayer:initializeEqualizer 2018-12-02 02:22:26.975 [ 1] 7 AndroidSLESMediaPlayer:initializeEqualizer:Bands: =5 2018-12-02 02:22:26.976 [ 1] 7 AndroidSLESMediaPlayer:initializeEqualizer:Min=-15,Max=15 2018-12-02 02:22:27.052 [ 1] 5 SQLiteBluetoothStorage:create 2018-12-02 02:22:27.052 [ 1] 5 CBLAuthDelegate:create 2018-12-02 02:22:27.053 [ 1] 5 CBLAuthDelegate:CBLAuthDelegate 2018-12-02 02:22:27.053 [ 1] 5 CBLAuthDelegate:init 2018-12-02 02:22:27.053 [ 1] 5 CBLAuthDelegateConfiguration:create 2018-12-02 02:22:27.053 [ 1] 5 CBLAuthDelegateConfiguration:init 2018-12-02 02:22:27.054 [ 1] 5 CBLAuthDelegateConfiguration:initScopeData 2018-12-02 02:22:27.054 [ 1] 9 CBLAuthDelegateConfiguration:initScopeDataSucceeded 2018-12-02 02:22:27.054 [ 1] 5 SQLiteCBLAuthDelegateStorage:open 2018-12-02 02:22:27.057 [ 2] 5 CBLAuthDelegate:handleAuthorizationFlow 2018-12-02 02:22:27.058 [ 2] 5 CBLAuthDelegate:handleStarting 2018-12-02 02:22:27.058 [ 2] 5 SQLiteCBLAuthDelegateStorage:getRefreshToken 2018-12-02 02:22:27.058 [ 1] 5 CBLAuthDelegate:addAuthObserver:observer=0xe3ff8284 2018-12-02 02:22:27.058 [ 2] 0 SQLiteCBLAuthDelegateStorage:getRefreshTokenFailed:reason=stepResultWasNotRow 2018-12-02 02:22:27.059 [ 2] 0 CBLAuthDelegate:getRefreshTokenFailed 2018-12-02 02:22:27.059 [ 2] 5 CBLAuthDelegate:handleRequestingCodePair 2018-12-02 02:22:27.059 [ 2] 5 CBLAuthDelegate:requestCodePair 2018-12-02 02:22:27.058 [ 1] 5 CBLAuthDelegate:addAuthObserver:observer=0xe3fdcf10 2018-12-02 02:22:27.060 [ 1] 5 CapabilitiesDelegate:addCapabilitiesObserver:observer=0xe3fdcf14 2018-12-02 02:22:27.099 [ 1] 5 InternetConnectionMonitor:startMonitoring 2018-12-02 02:22:27.100 [ 3] 5 InternetConnectionMonitor:testConnection 2018-12-02 02:22:27.111 [ 1] 9 SpeechSynthesizer:addObserver:observer=0xe3f93394 2018-12-02 02:22:27.112 [ 1] 9 PlaybackRouter:create::called 2018-12-02 02:22:27.113 [ 1] 0 SpeakerManager:mapCreated:numSpeakerVolume=5,numAlertsVolume=1 2018-12-02 02:22:27.113 [ 1] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.114 [ 1] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.114 [ 1] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.114 [ 1] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.114 [ 1] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.114 [ 1] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true 2018-12-02 02:22:27.114 [ 1] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false 2018-12-02 02:22:27.114 [ 1] 9 SpeakerManager:updateContextManagerCalled:speakerType=AVS_SPEAKER_VOLUME 2018-12-02 02:22:27.117 [ 1] 9 AlertScheduler:setTimerForNextAlertLocked 2018-12-02 02:22:27.117 [ 1] 9 AlertScheduler:executeScheduleNextAlertForRendering::no work to do. 2018-12-02 02:22:27.117 [ 1] 9 SpeakerManager:getSpeakerSettingsCalled 2018-12-02 02:22:27.118 [ 4] 9 SpeakerManager:executeGetSpeakerSettingsCalled 2018-12-02 02:22:27.118 [ 4] 9 AndroidSLESSpeaker:getSettings:volume=100,mute=0,type=AVS_ALERTS_VOLUME 2018-12-02 02:22:27.118 [ 4] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true 2018-12-02 02:22:27.118 [ 4] 9 SpeakerManager:validateSpeakerSettings:volume=100,mute=false 2018-12-02 02:22:27.119 [ 1] 9 SpeakerManager:addSpeakerManagerObserverCalled 2018-12-02 02:22:27.119 [ 1] 9 SpeakerManager:addSpeakerManagerObserver:observer=0xe3df8044 2018-12-02 02:22:27.119 [ 5] 1 AlertsCapabilityAgent:executeOnConnectionStatusChanged:status=DISCONNECTED,reason=ACL_CLIENT_REQUEST 2018-12-02 02:22:27.119 [ 1] 5 NotificationsRenderer:create 2018-12-02 02:22:27.121 [ 1] 5 NotificationsCapabilityAgent:init 2018-12-02 02:22:27.122 [ 1] 5 NotificationsRenderer:addObserver 2018-12-02 02:22:27.123 [ 1] 5 InteractionModel:InteractionModelCapabilityAgent 2018-12-02 02:22:27.123 [ 6] 5 NotificationsCapabilityAgent:executeInit 2018-12-02 02:22:27.124 [ 6] 5 NotificationsCapabilityAgent:notifyObservers:indicatorState=0 2018-12-02 02:22:27.125 [ 6] 5 NotificationsCapabilityAgent:executeProvideState:sendToken=false,stateRequestToken=0 2018-12-02 02:22:27.125 [ 6] 9 ContextManager:updateStateLocked:action=updatedState,namespace=Notifications,name=IndicatorState 2018-12-02 02:22:27.126 [ 1] 0 ExternalMediaPlayer:createAdapters 2018-12-02 02:22:27.128 [ 1] 1 AudioPlayer:addObserver 2018-12-02 02:22:27.129 [ 7] 5 TemplateRuntime:onDialogUXStateChanged:state=IDLE 2018-12-02 02:22:27.131 [ 1] 5 AndroidSLESMediaPlayer:setEqualizerBandLevels 2018-12-02 02:22:27.131 [ 1] 7 AndroidSLESMediaPlayer:setEqualizerBandLevels:band index=0,band level=0 2018-12-02 02:22:27.132 [ 1] 7 AndroidSLESMediaPlayer:setEqualizerBandLevels:band index=1,band level=0 2018-12-02 02:22:27.132 [ 1] 7 AndroidSLESMediaPlayer:setEqualizerBandLevels:band index=2,band level=0 2018-12-02 02:22:27.132 [ 1] 7 AndroidSLESMediaPlayer:setEqualizerBandLevels:band index=3,band level=0 2018-12-02 02:22:27.132 [ 1] 7 AndroidSLESMediaPlayer:setEqualizerBandLevels:band index=4,band level=0 2018-12-02 02:22:27.133 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0xe3ff8a00,policy=BLOCKING 2018-12-02 02:22:27.133 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.133 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.133 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Login,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Logout,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=ExternalMediaPlayer,name=Play,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableRepeat,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Play,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=StartOver,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Previous,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Pause,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=AdjustSeekPosition,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.134 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Rewind,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=Next,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=DisableShuffle,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaybackController,name=FastForward,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableRepeatOne,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableRepeat,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.PlaylistController,name=EnableShuffle,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.SeekController,name=SetSeekPosition,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Favorite,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.135 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alexa.FavoritesController,name=Unfavorite,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=SetEndOfSpeechOffset,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=AdjustVolume,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetVolume,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlerts,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.136 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0xe3fee300,policy=NON_BLOCKING 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0xe3fa3f04,policy=NON_BLOCKING 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetMute,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=AdjustVolume,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Speaker,name=SetVolume,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.137 [ 1] 5 TemplateRuntime:getConfiguration 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0xe3ff8c80,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=TemplateRuntime,name=RenderTemplate,handler=0xe3ff8c80,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=ClearIndicator,handler=0xe3ff11c4,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.137 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=Notifications,name=SetIndicator,handler=0xe3ff11c4,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.138 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=InteractionModel,name=NewDialogRequest,handler=0xe3fdde60,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.138 [ 1] 5 EqualizerController:getConfiguration 2018-12-02 02:22:27.138 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=SetMode,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.138 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=AdjustBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.138 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=ResetBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.138 [ 1] 9 DirectiveRouter:addDirectiveHandlers:action=added,namespace=EqualizerController,name=SetBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.140 [ 1] 9 SpeakerManager:addSpeakerManagerObserverCalled 2018-12-02 02:22:27.140 [ 1] 9 SpeakerManager:addSpeakerManagerObserver:observer=0xe3fdcf20 2018-12-02 02:22:27.140 [ 1] 5 NotificationsCapabilityAgent:addObserver 2018-12-02 02:22:27.141 [ 1] 5 TemplateRuntime:addObserver #################################################

NOTIFICATION INDICATOR STATE: OFF

#################################################

2018-12-02 02:22:27.141 [ 8] 5 TemplateRuntime:addObserverInExecutor 2018-12-02 02:22:27.156 [ 1] E AndroidSLESObject:createSlOjectFailed:reason=Failed to realize object.,result=9 2018-12-02 02:22:27.157 [ 1] E AndroidSLESEngine:initializeAndroidMicFailed:reason=Failed to create recorder wrapper. 2018-12-02 02:22:27.157 [ 1] C SampleApplication:Failed to create PortAudioMicrophoneWrapper! 2018-12-02 02:22:27.166 [ 1] 5 DefaultClient:DirectiveSequencerShutdown 2018-12-02 02:22:27.166 [ 1] 9 DirectiveSequencer:doShutdown 2018-12-02 02:22:27.167 [ 1] 5 EqualizerController:getConfiguration 2018-12-02 02:22:27.167 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=EqualizerController,name=SetMode,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.167 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=EqualizerController,name=AdjustBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.167 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=EqualizerController,name=ResetBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=EqualizerController,name=SetBands,handler=0xe3fe0b0c,policy=NON_BLOCKING 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Notifications,name=ClearIndicator,handler=0xe3ff11c4,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Notifications,name=SetIndicator,handler=0xe3ff11c4,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.168 [ 1] 5 TemplateRuntime:getConfiguration 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=TemplateRuntime,name=RenderPlayerInfo,handler=0xe3ff8c80,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=TemplateRuntime,name=RenderTemplate,handler=0xe3ff8c80,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=SetMute,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=AdjustVolume,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Speaker,name=SetVolume,handler=0xe3fe0500,policy=NON_BLOCKING 2018-12-02 02:22:27.168 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=ResetUserInactivity,handler=0xe3fa3f04,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=System,name=SetEndpoint,handler=0xe3fee300,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=AdjustVolume,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=SetVolume,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=DeleteAlerts,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=DeleteAlert,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alerts,name=SetAlert,handler=0xe3df8000,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=SetEndOfSpeechOffset,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.169 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechRecognizer,name=StopCapture,handler=0xe3f0a540,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=ExternalMediaPlayer,name=Login,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=ExternalMediaPlayer,name=Logout,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=ExternalMediaPlayer,name=Play,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaylistController,name=DisableRepeat,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=Play,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=StartOver,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=Previous,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=Pause,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.170 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.SeekController,name=AdjustSeekPosition,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=Rewind,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=Next,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaylistController,name=DisableShuffle,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaybackController,name=FastForward,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaylistController,name=EnableRepeatOne,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaylistController,name=EnableRepeat,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.PlaylistController,name=EnableShuffle,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.SeekController,name=SetSeekPosition,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.FavoritesController,name=Favorite,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.171 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=Alexa.FavoritesController,name=Unfavorite,handler=0xe3ff12a0,policy=NON_BLOCKING 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=ClearQueue,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Stop,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=AudioPlayer,name=Play,handler=0xe3f0a700,policy=NON_BLOCKING 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=InteractionModel,name=NewDialogRequest,handler=0xe3fdde60,policy=HANDLE_IMMEDIATELY 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:removeDirectiveHandlers:action=removed,namespace=SpeechSynthesizer,name=Speak,handler=0xe3ff8a00,policy=BLOCKING 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3fe0b0c 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3ff11c4 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3ff8c80 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3fe0500 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3fa3f04 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3fee300 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3df8000 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3f0a540 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3ff12a0 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3f0a700 2018-12-02 02:22:27.172 [ 1] 0 AudioPlayer:onDeregistered 2018-12-02 02:22:27.172 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3fdde60 2018-12-02 02:22:27.173 [ 1] 9 DirectiveRouter:onDeregisteredCalled:handler=0xe3ff8a00 2018-12-02 02:22:27.173 [ 9] 1 AudioPlayer:executeStop:playNextItem=false,m_currentActivity=IDLE 2018-12-02 02:22:27.173 [ 1] 9 SpeechSynthesizer:onDeregistered 2018-12-02 02:22:27.173 [ 1] 5 DefaultClient:SpeakerManagerShutdown 2018-12-02 02:22:27.174 [ 1] 5 DefaultClient:TemplateRuntimeShutdown 2018-12-02 02:22:27.174 [ 1] 1 AudioPlayer:removeObserver 2018-12-02 02:22:27.174 [ 1] 5 DefaultClient:AIPShutdown 2018-12-02 02:22:27.174 [ 1] 5 DefaultClient:AudioPlayerShutdown 2018-12-02 02:22:27.174 [ 1] 5 ProgressTimer:stop 2018-12-02 02:22:27.175 [ 1] 1 AudioPlayer:executeStop:playNextItem=false,m_currentActivity=IDLE 2018-12-02 02:22:27.175 [ 1] 5 ContextManager:setStateProvider:action=removedStateProvider,namespace=AudioPlayer,name=PlaybackState 2018-12-02 02:22:27.175 [ 1] 5 DefaultClient:ExternalMediaPlayerShutdown 2018-12-02 02:22:27.175 [ 1] 5 ContextManager:setStateProvider:action=removedStateProvider,namespace=ExternalMediaPlayer,name=ExternalMediaPlayerState 2018-12-02 02:22:27.176 [ 1] 5 ContextManager:setStateProvider:action=removedStateProvider,namespace=Alexa.PlaybackStateReporter,name=playbackState 2018-12-02 02:22:27.176 [ 1] 5 DefaultClient:SpeechSynthesizerShutdown 2018-12-02 02:22:27.176 [ 1] 9 SpeechSynthesizer:doShutdown 2018-12-02 02:22:27.176 [ 1] 5 DefaultClient:AlertsShutdown 2018-12-02 02:22:27.177 [ 1] 9 AlertsCapabilityAgent:releaseChannel 2018-12-02 02:22:27.177 [ 1] 5 DefaultClient:PlaybackControllerShutdown 2018-12-02 02:22:27.178 [ 1] 5 DefaultClient:MessageRouterShutdown. 2018-12-02 02:22:27.178 [ 1] 5 DefaultClient:ConnectionManagerShutdown. 2018-12-02 02:22:27.178 [ 1] 5 DefaultClient:CertifiedSenderShutdown. 2018-12-02 02:22:27.179 [ 1] 5 DefaultClient:AudioActivityTrackerShutdown. 2018-12-02 02:22:27.179 [ 1] 5 DefaultClient:VisualActivityTrackerShutdown. 2018-12-02 02:22:27.179 [ 1] 5 DefaultClient:PlaybackRouterShutdown. 2018-12-02 02:22:27.179 [ 1] 5 DefaultClient:NotificationsShutdown. 2018-12-02 02:22:27.179 [ 1] 5 NotificationsCapabilityAgent:doShutdown 2018-12-02 02:22:27.180 [ 6] 5 NotificationsCapabilityAgent:executeShutdown:currentState=IDLE 2018-12-02 02:22:27.180 [ 6] 5 NotificationsCapabilityAgent:executeSetState:previousState=IDLE,newState=SHUTDOWN 2018-12-02 02:22:27.180 [ 1] 5 ContextManager:setStateProvider:action=removedStateProvider,namespace=Notifications,name=IndicatorState 2018-12-02 02:22:27.181 [ 1] 5 DefaultClient:UserInactivityMonitorShutdown. 2018-12-02 02:22:27.181 [ 1] 5 DefaultClient:EqualizerCapabilityAgentShutdown 2018-12-02 02:22:27.183 [ 1] 5 InteractionModel:~InteractionModelCapabilityAgent 2018-12-02 02:22:27.183 [ 1] 5 ProgressTimer:stop 2018-12-02 02:22:27.183 [ a] 9 CertifiedSender:CertifiedSender worker thread done. exiting mainloop. 2018-12-02 02:22:27.184 [ 1] 5 InternetConnectionMonitor:stopMonitoring 2018-12-02 02:22:27.935 [ 3] 0 InProcessAttachmentReader:readFailed:reason=SDS is closed 2018-12-02 02:22:27.935 [ 3] 5 InternetConnectionMonitor:updateConnectionStatus:connected=true 2018-12-02 02:22:27.935 [ 3] 5 InternetConnectionMonitor:notifyObserversLocked 2018-12-02 02:22:27.935 [ 3] 9 LibCurlHttpContentFetcher:~LibCurlHttpContentFetcher 2018-12-02 02:22:27.992 [ 1] C SampleApplication:Failed to initialize SampleApplication 2018-12-02 02:22:27.993 [ 1] 5 CBLAuthDelegate:removeAuthObserver:observer=0xe3ff8284 2018-12-02 02:22:27.999 [ 1] 5 CBLAuthDelegate:stop 2018-12-02 02:22:28.486 [ 2] 5 HttpPost:doPostSucceeded:code=200 2018-12-02 02:22:28.487 [ 2] 5 CBLAuthDelegate:receiveCodePairResponse:code=200 2018-12-02 02:22:28.487 [ 2] 5 CBLAuthDelegate:mapHTTPStatusToError:code=200,error=SUCCESS 2018-12-02 02:22:28.487 [ 2] 5 CBLAuthDelegate:setAuthError:authError=SUCCESS ##################################

NOT YET AUTHORIZED

##################################

################################################################################################

To authorize, browse to: 'https://amazon.com/us/code' and enter the code: FGKEEU

################################################################################################

2018-12-02 02:22:28.507 [ 1] 5 SQLiteCBLAuthDelegateStorage:~SQLiteCBLAuthDelegateStorage 2018-12-02 02:22:28.507 [ 1] 5 SQLiteCBLAuthDelegateStorage:close Failed to create to SampleApplication!

Provide the steps to reproduce the issue, if applicable:

I have given path on Android as /data/local/tmp/alexa as no other paths work because SampleApp cannot be set to executable mode on other paths

Tell us about your environment:

What version of the AVS Device SDK are you using?

  SDK Version 1.10.0

Tell us what hardware you're using:

Tell us about your OS (Type & version):

Some more details

Android config

Fill the lines below to configure android build.

PLATFORM="android" API_LEVEL="24" TARGET_SYSTEM="arm" DEVICE_INSTALL_PATH="/data/local/tmp/alexa" BUILD_TYPE="debug"

mavamazon commented 5 years ago

Hi! The errors in the log shows that SDK is unable to configure your mic for the required audio recording setup (16KHz Mono PCM. Are you running SampleApp as a root?

coding-yogi commented 5 years ago

How to run SampleApp as root? Android doesn't allow that. Do you mean to say that my phone must be rooted? I am trigerring the startsample.sh script which runs sample app in adb shell

coding-yogi commented 5 years ago

Another related question. My TARGET_SYSTEM is set as arm but my device shows ro.product.cpu.abi=arm64-v8a. So should I be setting TARGET_SYSTEM as arm64-v8a ??

I saw below code in android.sh, if this is the case, setting TARGET_SYSTEM=arm will set incorrect ANDROID_ABI. Please suggest

  if [ "${TARGET_SYSTEM}" == "x86" ]; then
      ANDROID_ABI="${TARGET_SYSTEM}"
  else
      if [ "${TARGET_SYSTEM}" == "arm" ]; then
          ANDROID_ABI="armeabi-v7a"
      else
          ANDROID_ABI="arm64-v8a"
      fi
  fi
celinval commented 5 years ago

Hi @coding-yogi, we currently don't support arm64 builds.

TacticalSlothmaster commented 5 years ago

Hi @celinval , any update for arm64? Im trying to use the SampleApp for arm64 too, but so far with no success.

caleighatamazon commented 4 years ago

I'm sorry for our late response. Are you still having problems with this issue? Otherwise I will close due to inactivity in one week.

caleighatamazon commented 4 years ago

Closing this due to inactivity. Please feel free to re-open if you encounter further problems. Thanks!