I am writing an Android Library that uses Sugar Orm to store stuff into the SQLite database. I get an error when I put in
<application android:label="@string/app_name" android:icon="@drawable/icon"
android:name="com.orm.SugarApp">
<meta-data android:name="DATABASE" android:value="sugar_example.db" />
<meta-data android:name="VERSION" android:value="2" />
<meta-data android:name="QUERY_LOG" android:value="true" />
<meta-data android:name="DOMAIN_PACKAGE_NAME" android:value="com.example" />
</application>
The AndroidManifest.xml of my Android Library. If I try to rebuild the app, I get errors since my main App also uses Sugar ORM and it has the same meta-data in the xml except the values are different.
The error I get are:
Error:(13, 9) Attribute application@name value=(com.example.app.App) from AndroidManifest.xml:13:9
Error:(20, 13) Attribute meta-data#DATABASE@value value=(test_car.db) from AndroidManifest.xml:20:13
Error:(23, 13) Attribute meta-data#VERSION@value value=(4) from AndroidManifest.xml:23:13
Error:(29, 13) Attribute meta-data#DOMAIN_PACKAGE_NAME@value value=(com.example.app) from AndroidManifest.xml:29:13
How would I solve this? Can I not have multiple databases?
Aucun commentaire:
Enregistrer un commentaire