INSTALL_PARSE_FAILED_NO_CERTIFICATES

75 vues
Accéder directement au premier message non lu

Jl Du

non lue,
28 mai 2015, 04:35:2128/05/2015
à calabash...@googlegroups.com

Hi, 

I am the new to calabash-android, and have no idea where it's from of following error. My .calabash_settings also has been updated. I tried to find the way by google, bu no lucky.

Can TestServer.apk be installed to device directly, it's still failed even i tried to install it by hand.

{"package_name":"","activity_name":"","app_path":"","api_level":"","keystore_location":"C:\Users\dujinlei.android\debug.keystore","keystore_password":"android","keystore_alias":"androiddebugkey","keystore_alias_password":"android"}

2015-05-28 16:24:17 - JDK found at: C:\Program Files\Java\jdk1.7.0_67
2015-05-28 16:24:17 - Android SDK found at: D:\tool\adt-bundle-windows-x86_64-20131030\sdk
2015-05-28 16:24:17 - Trying to find launchable activity
2015-05-28 16:24:17 - Found tools directory at 'D:/tool/adt-bundle-windows-x86_64-20131030/sdk/build-tools/android-4.4'
2015-05-28 16:24:17 - Found launchable activity 'sh.calaba.demoproject.AndroidDemoProjectActivity'
2015-05-28 16:24:17 - D:/tool/ruby-1.9.3-p551-i386-mingw32/bin/ruby.exe -S cucumber -v MAIN_ACTIVITY=sh.calaba.demoproject.AndroidDemoProjectActivity APP_PATH="D:/code/calabash-android-demoapp-master/calabash/AndroidDemoProject.apk" TEST_APP_PATH="test_servers/5712a70e81ad038459247d5e0a5c7b81_0.5.9.apk"
Code:

  • features/support/env.rb
  • features/support/app_installation_hooks.rb
  • features/support/app_life_cycle_hooks.rb
  • features/support/hooks.rb
  • features/step_definitions/calabash_steps.rb

Features:

  • features/my_first.feature Parsing feature files took 0m0.009s

Feature: Demo feature

Scenario: I can start my app # features\my_first.feature:3
2015-05-28 16:24:18 - First scenario in feature - reinstalling apps
2015-05-28 16:24:18 - connected_devices: ["4dfa00fc2502317b"]
2015-05-28 16:24:18 - "D:\tool\adt-bundle-windows-x86_64-20131030\sdk/platform-tools/adb.exe" -s 4dfa00fc2502317b forward tcp:34777 tcp:7102
2015-05-28 16:24:18 - 
2015-05-28 16:24:18 - Found tools directory at 'D:/tool/adt-bundle-windows-x86_64-20131030/sdk/build-tools/android-4.4'
2015-05-28 16:24:18 - Uninstalling: sh.calaba.demoproject.test
2015-05-28 16:24:18 - tttttt
2015-05-28 16:24:19 - Failure

2015-05-28 16:24:20 - Found tools directory at 'D:/tool/adt-bundle-windows-x86_64-20131030/sdk/build-tools/android-4.4'
2015-05-28 16:24:21 - Uninstalling: sh.calaba.demoproject
2015-05-28 16:24:21 - tttttt
2015-05-28 16:24:22 - Failure

2015-05-28 16:24:23 - test_servers/5712a70e81ad038459247d5e0a5c7b81_0.5.9.apk
2015-05-28 16:24:23 - Installing: test_servers/5712a70e81ad038459247d5e0a5c7b81_0.5.9.apk
2015-05-28 16:24:23 - Installing: test_servers/5712a70e81ad038459247d5e0a5c7b81_0.5.9.apk
2015-05-28 16:24:24 - pkg: /data/local/tmp/5712a70e81ad038459247d5e0a5c7b81_0.5.9.apk

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

2015-05-28 16:24:24 - Found tools directory at 'D:/tool/adt-bundle-windows-x86_64-20131030/sdk/build-tools/android-4.4'
undefined method last' for #<Enumerator:0x2db5b18> (NoMethodError) D:/tool/ruby-1.9.3-p551-i386-mingw32/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.9/lib/calabash-android/operations.rb:316:ininstall_app'
D:/tool/ruby-1.9.3-p551-i386-mingw32/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.9/lib/calabash-android/operations.rb:105:in install_app' D:/code/calabash-android-demoapp-master/calabash/features/support/app_installation_hooks.rb:23:inBefore'
unexpected return (LocalJumpError)
D:/code/calabash-android-demoapp-master/calabash/features/support/app_life_cycle_hooks.rb:11:in `Before'
2015-05-28 16:24:26 - It looks like your app is no longer running. 
It could be because of a crash or because your test script shut it down.
2015-05-28 16:24:26 - Server not responding. Moving on.

Failing Scenarios:
cucumber features\my_first.feature:3 # Scenario: I can start my app

1 scenario (1 failed)
0 steps
0m7.772s

JL Du

non lue,
28 mai 2015, 06:20:3128/05/2015
à calabash...@googlegroups.com
Reinstall the version 0.5.8, it works. Maybe it's the bug of  0.5.9

tobias....@xamarin.com

non lue,
28 mai 2015, 08:07:1428/05/2015
à calabash...@googlegroups.com,jinl...@gmail.com
Please don't crosspost questions. You have created a github issue as well.

Ravi Kiran

non lue,
7 juin 2015, 10:16:0307/06/2015
à calabash...@googlegroups.com
It really works. In latest version not working
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message