2017-10-19 80 views
0

我想將dnsjava作爲一個包裹在Karaf中。當我嘗試啓動捆綁包時,出現「缺少約束」錯誤。我查看了dnsjava代碼,發現android引用的唯一位置是在Class.forName中。所以我想知道是什麼原因導致這個問題,我該如何解決這個問題。我很確定這個類在代碼中沒有被引用。Karaf:捆綁中缺少約束

這裏是個例外:

[email protected]>bundle:start 288 
Error executing command: Error executing command on bundles: 
Unable to execute command on bundle 288: The bundle "dnsjava_2.1.8 [288]" could not be resolved. Reason: Missing Constraint: Import-Package: android.os; version="0.0.0" 

回答