【问题标题】:Datastore Entities not showing数据存储实体未显示
【发布时间】:2015-01-25 04:37:15
【问题描述】:

https://cloud.google.com/developers/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial/

在第 8 步的标题“测试客户端和后端通信”处该网页的几乎一半:当我访问 localhost:8888/_ah/admin/ 时

我在下拉列表中没有看到任何实体(这是我第三次尝试本教程。最初两次尝试我只会看到三个实体中的一个“MessageData”。)我应该看到三个实体,尤其是。签到。

我被难住了。另外,我正处于学习阶段。为了在数据存储中创建实体,我必须做什么?

提前谢谢你。

【问题讨论】:

    标签: android google-app-engine google-cloud-datastore google-cloud-endpoints


    【解决方案1】:

    这是 MainActivity 的代码: https://github.com/GoogleCloudPlatform/solutions-mobile-shopping-assistant-backend-java/blob/master/MobileAssistant-Tutorial/Phase1_Snippets/MainActivity.01.java

    您必须首先生成 Cloud EndPoint 库。 然后,你必须检查你是否在 AndroidManifest.xml 上有这个 lig:

     <uses-permission android:name="android.permission.INTERNET"/>
    

    您在启动 android 应用程序时运行的第一个类在此处定义:

     <application           
            android:allowBackup="true" 
            android:icon="@drawable/ic_launcher" 
            android:label="@string/app_name" 
            android:theme="@style/AppTheme">
    
             <!-- Notre activité SplashScreen -->
             <activity android:label="@string/app_name" android:name="com.example.test.MainActivity">
                    <intent-filter>
                        <action android:name="android.intent.action.MAIN"/>
                        <category android:name="android.intent.category.LAUNCHER"/>
                    </intent-filter>
             </activity>
    </application>
    

    希望对你有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-20
      • 2012-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多