dehghanimeh / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

icsopenvpn project as library generates XML errors #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Added icsopenvpn as library to my eclipse project

Building the project produces an XML error.

*\basic_settings.xml:110: error: No resource identifier found for attribute 
'title' in package 'de.blinkt.openvpn'
*\basic_settings.xml:124: error: No resource identifier found for attribute 
'title' in package 'de.blinkt.openvpn'
*\basic_settings.xml:130: error: No resource identifier found for attribute 
'certificate' in package 'de.blinkt.openvpn'
*\basic_settings.xml:130: error: No resource identifier found for attribute 
'title' in package 'de.blinkt.openvpn'
*\basic_settings.xml:168: error: No resource identifier found for attribute 
'certificate' in package 'de.blinkt.openvpn'
*\basic_settings.xml:168: error: No resource identifier found for attribute 
'title' in package 'de.blinkt.openvpn'

How can I prevent or fix that error? I want to use you project as a library for 
my own openvpn App. Of course with naming and referencing you in the about and 
stuff.

Original issue reported on code.google.com by Mumpitz...@gmx.de on 24 Sep 2013 at 8:02

GoogleCodeExporter commented 9 years ago
Sorry I never used my project as a library. These errors seem to be related to 
the custom attributes (values/attrs.xml) but I have no idea about what an 
android library entails. 

When using icsopenvpn in your own app as library please note that you are bound 
to the GPL for your own app if you don't negotiate a seperate license with me 
(see doc/README FAQ)

Original comment by arne@rfc2549.org on 24 Sep 2013 at 8:22

GoogleCodeExporter commented 9 years ago
Your post brought me on the right track, thanks!

I fixed it. It was a problem with the namespaces between your project and mine. 
I needed to set the resource namespace of the basic_settings.xml from 
    xmlns:blinkt="http://schemas.android.com/apk/res/de.blinkt.openvpn"
to
    xmlns:blinkt="http://schemas.android.com/apk/res-auto"
This automatically refers to the right directory of custom resources(your 
values/attrs.xml), when bound in as library.

Another thing I figured out was, that I have to copy all the activity- and 
servicedefnitions from your project manifest into the manifest of mine. Just 
for your interest...

Currently it looks that we will publish our project as open source when its 
done with GPL too. For sure we will tell you when and where it will be found. 
Otherwise we will contact you to negotiate a private license.

Original comment by Mumpitz...@gmx.de on 26 Sep 2013 at 7:58

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e0962eecc1f8.

Original comment by arne@rfc2549.org on 26 Sep 2013 at 12:45