kotlin初心者です。
【目標】
レンタルサーバーにデータベースを作成したい!!
【詳細】
レンタルサーバーにデータベースを作成しようと思っており、realmのクラスをnifcloudに保存しようと考えております。(考え方が間違っているかもしれませんが、試みています。暖かい目で見守ってください)
その際アプリ実行時にnifcloudとrealmが処理されるようにAndroidManifestのapplication android:nameとして、2つ記載したいと考えたのですが、できないという状態です。
何かアドバイスいただければ幸いです、、、
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.nifty.user"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <application //android:nameが2つあるとエラーが生じる、、、 android:name=".RealmApplication" android:name="com.nifty.cloud.mb.core.NCMBApplicationController" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".LoginActivity" android:theme="@style/AppTheme.Dark" /> <activity android:name=".SignupActivity" android:theme="@style/AppTheme.Dark" /> <activity android:name=".EditActivity" /> </application> </manifest>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/25 10:55