Class Not Found Exception using custom cordova plugin

后端 未结 4 1795
旧巷少年郎
旧巷少年郎 2021-01-27 11:45

I\'m developing a printing app that uses a custom API to access the printer via USB, so I needed a custom Cordova plugin. I started developing it, it has been a very good challe

4条回答
  •  独厮守ぢ
    2021-01-27 12:43

    In my case I had multiple .java files referenced. When I changed the ordering of how it is referenced in plugin.xml, it fixed the problem. Seems like the last .java file is dependent on the second last one.

    Before:

        
        
        
        
    

    After:

    
    
    
    
    

    So just by switching the ordering, the ClassNotFoundException was resolved.

提交回复
热议问题