java.lang.IllegalArgumentException:Android中的AppKey不能为null或空错误

时间:2015-10-25 18:31:08

标签: android illegalargumentexception

我正在尝试从以下url运行Android代码。

这是我得到的错误。我没有对代码进行任何更改。可以帮助我纠正这个错误。

class ScanTextInFile
  attr_accessor :content, :line_number

  def initialize(content, line_number)
    @content = content
    @line_number = line_number
    calculate_word_frequency
  end

  def calculate_word_frequency
    words_hash = Hash.new(0) # Non-existent keys will default to a value of 0.
    highest_wf_words = Array.new

    @content.split.each do |word|
      words_hash[word.downcase] += 1
      highest_wf_count = words_hash.values.max # What is this for?
      highest_wf_words.concat(words_hash.keys) # What is this for?
    end

    p highest_wf_words
  end
end

1 个答案:

答案 0 :(得分:0)

我建议你在AppDynamics论坛上提出这个问题,可以在这里找到... http://www.appdynamics.com/community/