Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25749] Android: Incompatible types: Class<KrollExternalModule>

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2018-02-17T01:03:22.000+0000
Affected Version/sRelease 7.0.2
Fix Version/sRelease 7.1.0
ComponentsAndroid
Labels7.0.2RC, appcelerator, regression, sdk
ReporterLorenzo Piccinini
AssigneeGary Mathews
Created2018-02-04T17:04:16.000+0000
Updated2018-03-01T17:59:04.000+0000

Description

I'm using 7.0.1, trying to switch to 7.0.2 RC I unable to run it to android and I get this error error: incompatible types: Class cannot be converted to Class [ERROR] : (Class) Class.forName(className)); [ERROR] : ^ [ERROR] : Note: Some input files use unchecked or unsafe operations. [ERROR] : Note: Recompile with -Xlint:unchecked for details. [ERROR] : Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output [ERROR] : 1 error [ERROR] Application Installer abnormal process termination. Process exit value was 1

Attachments

FileDateSize
com.foo.bar-android-1.0.0.zip2018-02-14T01:21:12.000+000096089

Comments

  1. Sharif AbuDarda 2018-02-04

    Hello, Can you run through the terminal and get the trace log "appc run -p android -l trace"? Send the log in here. Thanks.
  2. Lorenzo Piccinini 2018-02-05

    2018-02-05T00:18:56.226Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/username/.appcelerator/install/7.0.2-6/package/appc.js 2018-02-05T00:18:56.306Z | DEBUG | [PLUGIN-LOAD] 78ms /Users/username/.appcelerator/install/7.0.2-6/package/node_modules/appc-cli-titanium/appc.js 2018-02-05T00:18:56.306Z | DEBUG | run plugin: /Users/username/.appcelerator/install/7.0.2-6/package/node_modules/appc-cli-titanium 2018-02-05T00:18:56.309Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/username/.appcelerator/install/7.0.2-6/package/node_modules/arrow/appc.js 2018-02-05T00:18:56.311Z | DEBUG | run plugin: /Users/username/.appcelerator/install/7.0.2-6/package/node_modules/arrow 2018-02-05T00:18:56.329Z | TRACE | plugin "arrow" failed its "when" function check, skipping... 2018-02-05T00:18:56.330Z | TRACE | plugin "titanium" failed its "when" function check, skipping... 2018-02-05T00:18:56.332Z | TRACE | executing command "run" with the following plugins: [] 2018-02-05T00:18:56.334Z | ERROR | Error: No valid targets for run. Are you in a project folder? at /Users/username/.appcelerator/install/7.0.2-6/package/lib/commands/run.js:26:15 at /Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:718:13 at iterate (/Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:262:13) at async.forEachOfSeries.async.eachOfSeries (/Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:281:9) at _parallel (/Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:717:9) at Object.async.series (/Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:739:9) at Object.run (/Users/username/.appcelerator/install/7.0.2-6/package/lib/commands/run.js:21:8) at /Users/username/.appcelerator/install/7.0.2-6/package/bin/commands/run.js:47:27 at executeWithPlugins (/Users/username/.appcelerator/install/7.0.2-6/package/lib/core.js:454:11) at fn (/Users/username/.appcelerator/install/7.0.2-6/package/node_modules/async/lib/async.js:746:34)
  3. Gary Mathews 2018-02-13

    [~otto.pic] You need to execute that command inside your Titanium project folder Could you also provide the full log of the error you are receiving when running your app?
  4. Lorenzo Piccinini 2018-02-14

    [download log here](http://www.smartappsdesign.com/log.txt)
  5. Gary Mathews 2018-02-14

    master: https://github.com/appcelerator/titanium_mobile/pull/9821
  6. Lokesh Choudhary 2018-02-14

    [~gmathews], can you please provide a backport.
  7. Gary Mathews 2018-02-14

    Backport is already provided, I changed the PR to 7_1_X
  8. Gary Mathews 2018-02-15

    7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9830
  9. Lokesh Choudhary 2018-02-17

    FR Passed. PR's merged.
  10. Lokesh Choudhary 2018-03-01

    Verified the fix in SDK 7.2.0.v20180301081409 & 7.1.0.v20180228160738. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12 Appc CLI: 7.0.2 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 6P — Android 8.0.0 ⇨ google Nexus 5 — Android 6.0.1

JSON Source