Android full backup: “file.xml is not in an included path”
up vote
7
down vote
favorite
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android
add a comment |
up vote
7
down vote
favorite
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01
add a comment |
up vote
7
down vote
favorite
up vote
7
down vote
favorite
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android
android
edited Nov 11 at 21:39
asked Aug 5 at 1:44
babay
3,27611932
3,27611932
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01
add a comment |
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01
It simply says that your exclude
nonceStorage.xml
is not in any <include ..
paths?– Torxed
Nov 11 at 20:58
It simply says that your exclude
nonceStorage.xml
is not in any <include ..
paths?– Torxed
Nov 11 at 20:58
1
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
add a comment |
up vote
0
down vote
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
add a comment |
up vote
0
down vote
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
add a comment |
up vote
0
down vote
up vote
0
down vote
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
edited Nov 16 at 13:22
answered Nov 16 at 13:00
Martin Zeitler
12.4k33560
12.4k33560
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
add a comment |
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 at 7:49
add a comment |
up vote
0
down vote
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
up vote
0
down vote
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
up vote
0
down vote
up vote
0
down vote
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
answered Nov 18 at 12:04
Dewey Reed
5881413
5881413
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51690808%2fandroid-full-backup-file-xml-is-not-in-an-included-path%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It simply says that your exclude
nonceStorage.xml
is not in any<include ..
paths?– Torxed
Nov 11 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 at 21:01