Launch an Android project using PhoneGap

I am trying to launch an Android application using PhoneGap. I follow the YouTube video and when I press the start button. This shows me the following errors.

12-03 18:45:52.704: E/AndroidRuntime(27214): java.lang.RuntimeException: Unable to start activity ComponentInfo{tpl.apps.UKTrains/tpl.apps.UKTrains.Main}: android.content.res.Resources$NotFoundException: Resource ID #0x0 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2705) 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721) 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.app.ActivityThread.access$2300(ActivityThread.java:132) 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071) 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.os.Handler.dispatchMessage(Handler.java:99) 12-03 18:45:52.704: E/AndroidRuntime(27214): at android.os.Looper.loop(Looper.java:123) 

Then I tried to run my sample application with information about the phone and materials. It works fine, and I made some other changes as per the sample application, but it still doesn't work.

Do you have any ideas what this might be? Thanks.

+6
source share
1 answer

I just confirm that Onur already wrote: there are phonegap.xml files (the so-called cordova.xml right now, after Phonegap became the Apache Cordova project) and plugin.xml, and you continue to receive the error above until you provide these two file in the res / xml folder.

I ran into a problem when cloning my Phonegap project, created with the release of 0.9, and updating Phonegap files to 1.2 or Cordova 1.5.

Obviously, I did not pay enough attention to the “change files” because there were no XML files needed for 0.9x release.

+9
source

Source: https://habr.com/ru/post/903011/


All Articles