Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24703] Android: Missing R class for modules

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-05-19T14:40:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterJan Vennemann
AssigneeJan Vennemann
Created2017-05-18T00:54:16.000+0000
Updated2017-05-19T14:41:31.000+0000

Description

*Steps to reproduce the behavior*

Extract the test module com.appc.timob24703-android-1.0.0.zip and add it to a new Titanium app.

Replace the content of app/controllers/index.js with:

var test = require('com.appc.timob24703');
$.index.add(test.createExample());
$.index.open();

Build and run the app with appc run -p android -l trace

*Actual behvavior* The app crashes upon start with the following error:
[ERROR] TiApplication: (main) [169,170] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/appc/timob24703/R$layout;; Titanium 6.2.0,2017/05/17 16:12,undefined
[ERROR] TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/appc/timob24703/R$layout;
*Expected behavior* The app starts without crashing and shows a simple "Titanium" label.

Attachments

FileDateSize
com.appc.timob24703-android-1.0.0.zip2017-05-18T13:56:08.000+000082973

Comments

  1. Jan Vennemann 2017-05-18

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9068 PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9069
  2. Ewan Harris 2017-05-19

    FR: Pass App launches with no problems OPO 3 Android 7.1.1 OSX 10.11.6 Appc NPM: 4.2.9 App CLI: 6.2.2-master.15

JSON Source