Java 从谷歌电子表格获取数据到我的应用程序的代码突然停止工作

Java 从谷歌电子表格获取数据到我的应用程序的代码突然停止工作,java,android,html,android-webview,spreadsheet,Java,Android,Html,Android Webview,Spreadsheet,我正在使用这段代码将数据从google电子表格获取到web应用程序。它工作正常,现在没有任何数据 甚至其他使用相同代码和其他电子表格URL的页面也停止工作。我不知道怎么解决这个问题,请帮帮我 以下是我在项目中使用的代码 <html> <head> <style> @import url(http://fonts.googleapis.com/css?family=Roboto:400,100,300,700); html,body{ height:101

我正在使用这段代码将数据从google电子表格获取到web应用程序。它工作正常,现在没有任何数据

甚至其他使用相同代码和其他电子表格URL的页面也停止工作。我不知道怎么解决这个问题,请帮帮我

以下是我在项目中使用的代码

<html>
<head>
<style>
@import url(http://fonts.googleapis.com/css?family=Roboto:400,100,300,700);

html,body{
  height:101%;   
}

body{
  background: url(https://static.pexels.com/photos/220072/pexels-photo-220072.jpeg) no-repeat center center fixed; 

}

*{
  box-sizing:border-box;
}

.nn-alert{
  margin:auto;
  margin-top:20px;
  background:rgba(51, 59, 70, 0.5);
  border:1px solid #111;
  border-radius:3px;
  box-shadow:inset 0px 24px 0px rgba(255,255,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 10px 10px rgba(255,255,255,0.2),
    inset 0 -5px 10px rgba(0,0,0,0.2),
    0 3px 3px rgba(0,0,0,0.3);
  width:250px;
  height:auto;
  padding:5px 10px;
  color:white;
  font-size:12px;
  text-shadow:0 1px 1px rgba(0,0,0,0.8);
  transition:all .5s ease;
  backface-visibility:hidden;
}
.nn-alert.pink, .nn-alert.neatnait{
  background: rgba(255, 0, 102, 0.7);
}
.nn-alert.purple{
  background: rgba(37, 0, 102, 0.7);
}
.nn-alert.blue{
  background: rgba(24, 90, 207, 0.7);
}
.nn-alert.glass{
  background: rgba(99, 99, 99, 0.27); 
}



.nn-alert .fa{
  font-size:2em;
  width:1em;
  float:left;
  margin:7px 10px 0 0px;
  text-align:center;
}

.nn-alert p{
  margin:6px 0;
}

.nn-alert:hover{
  opacity:0.5;
}
/*
.nn-alert:hover .nn-alert:after{
  content:"asdf";
}
*/
h1, h3{

  font-family: 'Roboto', sans-serif;
  font-weight:100;
  text-shadow:0 1px 15px #fff;
  margin-bottom:2em;
}

h1{
  width:250px;
  margin:auto;
  color:white;
}
.neatnait-love{
  width:250px;
  margin:auto;
  margin-top:5em;
  font-weight:300;
  font-family: 'Roboto', sans-serif;
  text-shadow:0 5px 20px #000;
  color:white;
  background:#111;
  padding:2em 6em 2em 4em;
}

a{
  text-decoration:none;
  color:#f06;
  border-bottom:1px solid white;
  padding-bottom:5px;
  transition:border .5s ease;
}

a:hover{
  border-color:#111;
  color:#f06;
  border-bottom:4px solid white;
}


.hide{
  height:0;
  padding:0;
  margin:0;
}

.colors{
  position:fixed;
  top:0;
  left:0;
  padding:1em;
  color:white;
  font-size:11px;
  cursor:pointer;
}

.thumb{
  width:15px;
  height:15px;

  border:1px solid white;
  float:left;
  margin-right:5px;
}

.color.neatnait .thumb{
  background:#f06;
}
.color.purple .thumb{
  background: rgba(37, 0, 102, 0.7);
}
.color.blue .thumb{
  background: rgba(24, 90, 207, 0.7); 
}
.color.glass .thumb{
  background: rgba(99, 99, 99, 0.27); 
}


</style>


</head>
<body class="bg">

<script>

var ourRequest = new XMLHttpRequest();
ourRequest.open('GET', 'https://script.google.com/macros/s/AKfycbygukdW3tt8sCPcFDlkMnMuNu9bH5fpt7bKV50p2bM/exec?id=*************************&sheet=********');
ourRequest.onload = function(){
var ourData = JSON.parse(ourRequest.responseText);
//console.log(ourData["data"]);
//console.log(ourData.data[0].Name);

for (i in ourData.sender){
document.getElementById("spotlight").innerHTML =  ourData.sender[i].spotlight + document.getElementById("spotlight").innerHTML;


    }

};
ourRequest.send();


</script>

<center>

<h1 id="addhere">Spotlight</h1>

  <div id="spotlight">

</div>
</center>

</body>
</html>

@导入url(http://fonts.googleapis.com/css?family=Roboto:400,100,300,700);
html,正文{
身高:101%;
}
身体{
背景:url(https://static.pexels.com/photos/220072/pexels-photo-220072.jpeg)无重复中心固定;
}
*{
框大小:边框框;
}
.nn警报{
保证金:自动;
边缘顶部:20px;
背景:rgba(51,59,70,0.5);
边框:1px实心#111;
边界半径:3px;
盒影:嵌入0px 24px 0px rgba(255255,0.1),
插图0 1px 0 rgba(255255,0.4),
插图0 10px 10px rgba(255255255,0.2),
插图0-5px10px rgba(0,0,0,0.2),
0 3px 3px rgba(0,0,0,0.3);
宽度:250px;
高度:自动;
填充物:5px10px;
颜色:白色;
字体大小:12px;
文本阴影:0 1px 1px rgba(0,0,0,0.8);
过渡:所有。5s轻松;
背面可见性:隐藏;
}
.nn-alert.pink、.nn-alert.neatnait{
背景:rgba(255,0,102,0.7);
}
.nn-alert.purple{
背景:rgba(37,0,102,0.7);
}
.nn-alert.blue{
背景:rgba(24,90207,0.7);
}
.nn-alert.glass{
背景:rgba(99,99,99,0.27);
}
.nn警报.fa{
字号:2em;
宽度:1米;
浮动:左;
利润率:7px 10px 0 0px;
文本对齐:居中;
}
.nn警报p{
利润率:6px0;
}
.nn警报:悬停{
不透明度:0.5;
}
/*
.nn警报:悬停。nn警报:之后{
内容:“asdf”;
}
*/
h1,h3{
字体系列:“Roboto”,无衬线;
字号:100;
文本阴影:0 1px 15px#fff;
边缘底部:2米;
}
h1{
宽度:250px;
保证金:自动;
颜色:白色;
}
neatnait的爱{
宽度:250px;
保证金:自动;
边缘顶端:5em;
字体大小:300;
字体系列:“Roboto”,无衬线;
文本阴影:0 5px 20px#000;
颜色:白色;
背景:#111;
填充物:2em 6em 2em 4em;
}
a{
文字装饰:无;
颜色:#f06;
边框底部:1px纯白;
垫底:5px;
过渡:边界。5s轻松;
}
a:悬停{
边框颜色:#111;
颜色:#f06;
边框底部:4倍纯白;
}
.隐藏{
身高:0;
填充:0;
保证金:0;
}
.颜色{
位置:固定;
排名:0;
左:0;
填充:1em;
颜色:白色;
字体大小:11px;
光标:指针;
}
.拇指{
宽度:15px;
高度:15px;
边框:1px纯白;
浮动:左;
右边距:5px;
}
.color.neatnait.拇指{
背景:#f06;
}
.颜色.紫色.拇指{
背景:rgba(37,0,102,0.7);
}
.颜色.蓝色.拇指{
背景:rgba(24,90207,0.7);
}
.颜色.玻璃.拇指{
背景:rgba(99,99,99,0.27);
}
var ourRequest=new XMLHttpRequest();
我们的请求。打开('GET','https://script.google.com/macros/s/AKfycbygukdW3tt8sCPcFDlkMnMuNu9bH5fpt7bKV50p2bM/exec?id=*************************&活页=******');
ourRequest.onload=函数(){
var ourData=JSON.parse(ourRequest.responseText);
//console.log(ourData[“data”]);
//console.log(ourData.data[0].Name);
对于(我在ourData.sender中){
document.getElementById(“spotlight”).innerHTML=ourData.sender[i]。spotlight+document.getElementById(“spotlight”).innerHTML;
}
};
ourRequest.send();
聚光灯

您提供的代码与Android没有任何关系。哦,对不起,我的意思是在我的Android应用程序中有一个Web视图,我在其中使用了这些代码。