[TIMOB-24703] Android: Missing R class for modules
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-05-19T14:40:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Jan Vennemann |
Assignee | Jan Vennemann |
Created | 2017-05-18T00:54:16.000+0000 |
Updated | 2017-05-19T14:41:31.000+0000 |
Description
*Steps to reproduce the behavior*
Extract the test module
Replace the content of
Build and run the app with
*Actual behvavior*
The app crashes upon start with the following error:
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
File | Date | Size |
---|---|---|
com.appc.timob24703-android-1.0.0.zip | 2017-05-18T13:56:08.000+0000 | 82973 |
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9068 PR (6_1_X): https://github.com/appcelerator/titanium_mobile/pull/9069
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