我花了两天时间.我可以使用其他PC,但是我的Android Studio没有导入库,我进行了两次捕获:
正如你可以在第一张图片中看到的那样,Android Studio会自动填充我的行:

然而:

我正在阅读Android开发者中的JSONObject(这里),Android在库中包含这个.我也尝试从"org"导入其他库,但只是其中两个工作正常:

他们......我在想这可能是Android Studio的问题,我重新安装了IDE,错误仍然存在.
我试图在gradle中导入库(这是在build.gradle模块:app):

我正在与其他PC一起工作,它运行良好,但我需要在我的电脑中解决这个问题.
请,任何帮助将不胜感激.
我不明白这里发生了什么。
这是我的架构:
type MonthResume @model @auth(rules: [{allow: owner, identityClaim: "sub"}]){
id: ID!
incomes: Float!
spendingByCategory: [Category]
}
type Category @model @auth(rules: [{allow: owner, identityClaim: "sub"}]){
id: ID!
name: String!
amount: Float!
}
Run Code Online (Sandbox Code Playgroud)
这是 Amplify 提供给我的自动生成的更新突变:
export const updateMonthResume = /* GraphQL */ `
mutation UpdateMonthResume(
$input: UpdateMonthResumeInput!
$condition: ModelMonthResumeConditionInput
) {
updateMonthResume(input: $input, condition: $condition) {
id
incomes
spendingByCategory {
id
name
amount
createdAt
updatedAt
owner
}
createdAt
updatedAt
owner
}
}
`;
Run Code Online (Sandbox Code Playgroud)
这是我的输入:
{
"input": {
"id": "d7f-ee2971fd3ae5",
"incomes": …Run Code Online (Sandbox Code Playgroud) 我\xc2\xb4m 试图在我的活动上放置两个视图,但我只需要在键盘打开时显示它们。我怎样才能做到这一点?
\n\n我一直在寻找教程或其他东西,但我发现更多关于 iOS 的内容而不是 Android 的内容。另外,我将工具栏作为布局上的最后一个元素,但它不起作用。我想知道是否存在类似“android:above_keyboard”之类的东西...我不\xc2\xb4t 知道。
\n\n谢谢。
\n\nEdid添加一个例子:
\n\n
我正在尝试启动ios模拟器来尝试React Native App.直到现在我还没有安装XCode.
为了安装我的模拟器,我安装了XCode,我启动了一个项目"模拟器",推动"下一步"我需要一个公司名称,我把"simu",之后,我点击"项目>运行",我可以看到我的模拟器运行.
在我的CLI中,当我启动命令yarnpkg run ios时,我收到此错误:
Simulator is installed but is identified as 'simu.Simulator'; don't know what that is.
23:55:17: Failed to start simulator:
Unable to verify Xcode and Simulator installation.
Run Code Online (Sandbox Code Playgroud)
我删除了所有模拟器,但名称仍然存在,我已经搜索了如何更改识别器,但我找不到结果.
我想知道如果我可以将"simu.Simulator"更改为模拟器,有人可以帮助我吗?
在阅读官方文档(https://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.03.html#GettingStarted.NodeJs后,我正在尝试使用条件写入更新我的 DynamoDB 表。 03.05 ) 我收到一个错误,我认为这是一个语法错误,但我不确定,这是我的代码:
dynamodb.updateItem({
dynamodb.updateItem({
"TableName": "MyFavTable",
"Key":{
"MyFavKey": {
"S": "MyFavKey"
}
},
"UpdateExpression": "set MyLovelyBool=false",
"ConditionExpression": "MyLovelyBool == :p",
"ExpressionAttributeValues":{
":p":true
}
}, function(err, data) {
if (err) {
console.error("Unable to update item. Error JSON:", JSON.stringify(err, null, 2));
} else {
console.log("UpdateItem succeeded:", JSON.stringify(data, null, 2));
}
});
Run Code Online (Sandbox Code Playgroud)
我收到此错误后运行“正常”:
Unable to update item. Error JSON: {
"message": "Expected params.ExpressionAttributeValues[':p'] to be a structure",
"code": "InvalidParameterType",
"time": "2016-10-22T14:48:42.961Z"
}
Run Code Online (Sandbox Code Playgroud)
我检查 json 是否有效,我正在阅读有关 ExpressionAttributeValues …
我正在试图称之为"gulp watch"命令,但它不起作用,它说:
module.js:340
throw err;
^
Error: Cannot find module 'gulp-livereload'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/last/gulpfile.js:2:18)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
Run Code Online (Sandbox Code Playgroud)
我想这是我的gulpfile.js中的一个错误,但我不知道可能是什么.有人知道"livereload"发生了什么?我正在寻找互联网的答案,但我找不到任何东西,我试图(再次)安装npm,但它不起作用.
var gulp = require('gulp');
var livereload = require('gulp-livereload')
var uglify = require('gulp-uglifyjs');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var imagemin = require('gulp-imagemin');
var pngquant = require('imagemin-pngquant');
gulp.task('imagemin', function () …Run Code Online (Sandbox Code Playgroud) 我在终端上的项目文件夹中,并且:
如果我延伸:
gulp -v
Run Code Online (Sandbox Code Playgroud)
我明白了:
[15:47:15] CLI version 3.9.0
[15:47:15] Local version 3.9.0
Run Code Online (Sandbox Code Playgroud)
如果我执行:
gulp watch
Run Code Online (Sandbox Code Playgroud)
我明白了:
Error: Cannot find module 'gulp-uglifyjs'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/Applications/XAMPP/xamppfiles/htdocs/last/gulpfile.js:3:14)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
Run Code Online (Sandbox Code Playgroud)
然后,我在gulpfile.js 3:14中搜索,我看到了这个:
var uglify = require('gulp-uglifyjs');
Run Code Online (Sandbox Code Playgroud)
我读到了这个,很多人说"哦,做npm安装",我这样做,然后在制作npm -v之后我得到了这个:
3.3.12
Run Code Online (Sandbox Code Playgroud)
我尝试了很多命令,但我不知道发生了什么.也许gulpfile.js?
也许我忘记了一个依赖?
我有这个字符串:
[
{"id":"001",
"name":"Charlie"},
{"id":"002",
"name":"Ellie"},
]
Run Code Online (Sandbox Code Playgroud)
他们,我将这个字符串保存在变量中并解析它:
function parseJSON(string){
var mylovelyJSON = JSON.stringify(string);
alert(mylovelyJSON[id]);
}
Run Code Online (Sandbox Code Playgroud)
当我发出警报时,我得到并且"未定义",我也尝试了"mylovelyJSON.id",我也得到了同样的结果.
不能成为Json?我从php数组中获取此字符串.
这是我的文件夹结构:
??? Basic
??? Coche
? ??? __init.py__
? ??? coche.py
??? miPrimerCoche.py
Run Code Online (Sandbox Code Playgroud)
我想在miPrimerCoche中导入类"coche.py".在coche.py我有这个:
class Coche:
def __init__(self, marca, color, caballos):
self.marca = marca
self.color = color
self.caballos = caballos
def datos(self):
return "Este coche es un: " + self.marca + \
" de color: " + self.color + " y con: " + str(self.caballos) + " caballos"
Run Code Online (Sandbox Code Playgroud)
而且,在miPrimerCoche我有这个代码:
from Coche import coche
miMercedes = coche("Toyota", "verde", 50)
print miMercedes.marca
print miMercedes.datos()
Run Code Online (Sandbox Code Playgroud)
然后,当我运行miPrimerCoche时,我收到此错误:
Traceback (most recent call last):
File "/Users/personalUser/PycharmProjects/untitled/Basic/importar_clase.py", …Run Code Online (Sandbox Code Playgroud) android ×2
gulp ×2
json ×2
aws-amplify ×1
graphql ×1
ios ×1
iphone ×1
javascript ×1
jsonobject ×1
keyboard ×1
layout ×1
node.js ×1
python ×1
react-native ×1
xcode ×1