运行节点应用程序时出现配置错误。错误是:
{ ConfigError: Missing region in config
at Request.VALIDATE_REGION (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:12027:47)
at Request.callListeners (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:11804:22)
at callNextListener (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:11794:14)
at C:\Users\chris\Documents\AWS API TEST\myapp\node_modules\aws-
sdk\dist\aws-sdk-react-native.js:12021:11
at finish (C:\Users\chris\Documents\AWS API TEST\myapp\node_modules\aws-
sdk\dist\aws-sdk-react-native.js:10842:9)
at Config.getCredentials (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:10887:9)
at Request.VALIDATE_CREDENTIALS (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:12016:28)
at Request.callListeners (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:11800:20)
at Request.emit (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:11776:12)
at Request.emit (C:\Users\chris\Documents\AWS API
TEST\myapp\node_modules\aws-sdk\dist\aws-sdk-react-native.js:13792:16)
message: 'Missing region in config',
code: 'ConfigError',
Run Code Online (Sandbox Code Playgroud)
我的代码是:
//Authenticate AWS:
var myCredentials = new AWS.CognitoIdentityCredentials({IdentityPoolId:'us-west-2a:"Identity Pool ID"'});
var myConfig = new AWS.Config({ …Run Code Online (Sandbox Code Playgroud) 我希望在 Android 上禁用显示大小缩放。我已经能够通过使用来整理文本大小缩放,allowFontScaling={false}但我找不到对显示大小执行相同操作的方法。当显示尺寸增加时,我所有的视图都会混在一起,使应用程序无法使用。
这里有同样的问题,没有答案:
任何帮助将不胜感激。
当我尝试构建我的应用程序时出现此错误:
error: '350' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294].
Message{kind=ERROR, text=error: '350' is incompatible with attribute android:layout_height (attr) dimension|enum [fill_parent=4294967295, match_parent=4294967295, wrap_content=4294967294]., sources=[C:\Users\chris\Documents\GitHub\IFB398\MiBaseApplication\app\src\main\res\layout\activity_login_screen.xml:30], original message=, tool name=Optional.of(AAPT)}
Run Code Online (Sandbox Code Playgroud)
我正在使用 Android Studio,我对这一切真的很陌生。
编辑 1:
<EditText
android:id="@+id/UsernameEditText"
android:layout_width="307dp"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:ems="10"
android:hint="Username"
android:inputType="textPersonName"
android:textColor="@android:color/background_light"
android:textColorHint="@android:color/darker_gray"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.513"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.55" />
<ImageView
android:id="@+id/LogoImageView"
android:layout_width="350"
android:layout_height="350"
android:layout_marginBottom="6dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
app:srcCompat="@mipmap/mibaselogo" />
<EditText
android:id="@+id/PasswordEditText"
android:layout_width="309dp"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:ems="10" …Run Code Online (Sandbox Code Playgroud) 我有一个多页面应用程序,正在尝试在 GoDaddy 上托管。运行后npm build,我按照 GoDaddy 的说明将文件上传到他们,我可以毫无问题地查看我的主页。当我尝试导航到另一个页面(例如“关于”页面)时,收到 404 错误。
我一直在寻找,但我尝试的解决方案不起作用。我尝试添加"homepage": "http://www.kashy.com.au/",到我的package.json. 我也尝试过玩路线。(在路径中添加站点的 URL)。
我是 React 新手,所以我不太明白路由是如何工作的。有人能指出我解决这个问题的正确方向吗?
android ×2
aws-sdk-js ×1
hosting ×1
javascript ×1
react-native ×1
react-router ×1
reactjs ×1
region ×1
xml ×1