Trouble with Samsung GALAXY Android Support from Simulink

3 visualizzazioni (ultimi 30 giorni)
I did what the help document written, but when I deploy to hardware, it can't work in my phone, and only show "Hello world, untitled1"
  1 Commento
li huicai
li huicai il 23 Ago 2014
PS: This written in diagnostic viewer:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: Unexpected Apache Ant™ version 1.9.2 compiled on July 8 2013 Trying the default build file: build.xml Buildfile: C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0_67\jre Detected OS: Windows 7 parsing buildfile C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml with URI = <file:/C:/Users/Tang/Documents/MATLAB/untitled1_rtt/untitled1/build.xml> Project base dir set to: C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1 parsing buildfile jar:file:/C:/MATLAB/SupportPackages/R2014a/andriod/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/MATLAB/SupportPackages/R2014a/andriod/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\local.properties [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\ant.properties [property] Loading Environment env. Property "env.ANDROID_HOME" has not been set Importing file C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\custom_rules.xml from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Cannot find C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\custom_rules.xml imported from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Importing file C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Overriding previous definition of reference to ant.projectHelper parsing buildfile C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml with URI = <file:/C:/MATLAB/SupportPackages/R2014a/andriod/adt-bundle-windows-x86_64-20131030/sdk/tools/ant/build.xml> Property "key.store" has not been set [macrodef] creating macro do-only-if-not-library [macrodef] creating macro do-only-if-manifest-hasCode [macrodef] creating macro dex-helper [macrodef] creating macro package-helper [macrodef] creating macro zipalign-helper [macrodef] creating macro run-tests-helper [macrodef] creating macro record-build-key [macrodef] creating macro record-build-info [macrodef] creating macro uninstall-helper Overriding previous definition of reference to ant.projectHelper Build sequence for target(s) `debug' is [-set-mode-check, -set-debug-files, -check-env, -setup, -set-debug-mode, -debug-obfuscation-check, -pre-build, -build-setup, -code-gen, -pre-compile, -compile, -post-compile, -obfuscate, -dex, -crunch, -package-resources, -package, -post-package, -do-debug, -post-build, debug] Complete build sequence is [-set-mode-check, -set-debug-files, -check-env, -setup, -set-debug-mode, -debug-obfuscation-check, -pre-build, -build-setup, -code-gen, -pre-compile, -compile, -post-compile, -obfuscate, -dex, -crunch, -package-resources, -package, -post-package, -do-debug, -post-build, debug, -set-instrumented-mode, instrument, emma, android_rules.-pre-build, android_rules.-release-obfuscation-check, android_rules.-setup, lint, android_rules.-release-sign, -test-project-check, android_rules.nodeps, android_rules.-set-debug-files, android_rules.-set-debug-mode, -pre-clean, -release-nosign, install, installd, android_rules.installt, android_rules.-dex, -set-release-mode, android_rules.installr, android_rules.emma, android_rules.-release-nosign, android_rules.-pre-compile, android_rules.instrument, android_rules.uninstall, android_rules.installi, android_rules.lint, android_rules.-obfuscate, android_rules.clean, android_rules.installd, android_rules.-post-build, android_rules.-debug-obfuscation-check, android_rules.-compile, installt, help, -release-obfuscation-check, -release-prompt-for-password, -release-sign, android_rules.release, installr, release, android_rules.-pre-clean, android_rules.-post-compile, installi, android_rules.-code-gen, android_rules.-release-prompt-for-password, android_rules.-package-resources, android_rules.-set-mode-check, android_rules.-test-project-check, test, android_rules.help, android_rules.install, clean, android_rules.-do-debug, android_rules.-check-env, android_rules.-package, android_rules.-set-instrumented-mode, android_rules.-post-package, android_rules.test, android_rules.debug, uninstall, android_rules.-build-setup, nodeps, android_rules.-crunch, , android_rules.-set-release-mode]
-set-mode-check:
-set-debug-files:
-check-env: [checkenv] Android SDK Tools Revision 22.3.0 [checkenv] Installed at C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk
-setup: [echo] Project Name: untitled1 [gettype] Project Type: Application
-set-debug-mode: Property "emma.enabled" has not been set
-debug-obfuscation-check:
-pre-build:
-build-setup: [getbuildtools] Using latest Build Tools: 19.0.0 [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\build.prop Override ignored for property "build.last.target" Override ignored for property "build.last.is.instrumented" Override ignored for property "build.last.is.packaging.debug" Override ignored for property "build.last.is.signing.debug" [echo] Resolving Build Target for untitled1... [gettarget] Project Target: Android 4.4 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\res because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\libs because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\res because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\rsObj because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\rsLibs because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\gen because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\classes because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\dexedLibs because it already exists. [echo] ---------- [echo] Resolving Dependencies for untitled1...
BUILD FAILED C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:577: ../OpenCV resolve to a path with no project.properties file for project C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1 at com.android.ant.DependencyHelper.getDirectDependencies(DependencyHelper.java:250) at com.android.ant.DependencyHelper.init(DependencyHelper.java:182) at com.android.ant.DependencyHelper.<init>(DependencyHelper.java:177) at com.android.ant.GetLibraryPathTask.execute(GetLibraryPathTask.java:149) at com.android.ant.ComputeDependencyTask.execute(ComputeDependencyTask.java:226) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 2 seconds
The build process will terminate as a result.
Unexpected Apache Ant™ version 1.9.2 compiled on July 8 2013 Trying the default build file: build.xml Buildfile: C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0_67\jre Detected OS: Windows 7 parsing buildfile C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml with URI = <file:/C:/Users/Tang/Documents/MATLAB/untitled1_rtt/untitled1/build.xml> Project base dir set to: C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1 parsing buildfile jar:file:/C:/MATLAB/SupportPackages/R2014a/andriod/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/MATLAB/SupportPackages/R2014a/andriod/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\local.properties [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\ant.properties [property] Loading Environment env. Property "env.ANDROID_HOME" has not been set Importing file C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\custom_rules.xml from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Cannot find C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\custom_rules.xml imported from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Importing file C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml from C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\build.xml Overriding previous definition of reference to ant.projectHelper parsing buildfile C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml with URI = <file:/C:/MATLAB/SupportPackages/R2014a/andriod/adt-bundle-windows-x86_64-20131030/sdk/tools/ant/build.xml> Property "key.store" has not been set [macrodef] creating macro do-only-if-not-library [macrodef] creating macro do-only-if-manifest-hasCode [macrodef] creating macro dex-helper [macrodef] creating macro package-helper [macrodef] creating macro zipalign-helper [macrodef] creating macro run-tests-helper [macrodef] creating macro record-build-key [macrodef] creating macro record-build-info [macrodef] creating macro uninstall-helper Overriding previous definition of reference to ant.projectHelper Build sequence for target(s) `debug' is [-set-mode-check, -set-debug-files, -check-env, -setup, -set-debug-mode, -debug-obfuscation-check, -pre-build, -build-setup, -code-gen, -pre-compile, -compile, -post-compile, -obfuscate, -dex, -crunch, -package-resources, -package, -post-package, -do-debug, -post-build, debug] Complete build sequence is [-set-mode-check, -set-debug-files, -check-env, -setup, -set-debug-mode, -debug-obfuscation-check, -pre-build, -build-setup, -code-gen, -pre-compile, -compile, -post-compile, -obfuscate, -dex, -crunch, -package-resources, -package, -post-package, -do-debug, -post-build, debug, -set-instrumented-mode, instrument, emma, android_rules.-pre-build, android_rules.-release-obfuscation-check, android_rules.-setup, lint, android_rules.-release-sign, -test-project-check, android_rules.nodeps, android_rules.-set-debug-files, android_rules.-set-debug-mode, -pre-clean, -release-nosign, install, installd, android_rules.installt, android_rules.-dex, -set-release-mode, android_rules.installr, android_rules.emma, android_rules.-release-nosign, android_rules.-pre-compile, android_rules.instrument, android_rules.uninstall, android_rules.installi, android_rules.lint, android_rules.-obfuscate, android_rules.clean, android_rules.installd, android_rules.-post-build, android_rules.-debug-obfuscation-check, android_rules.-compile, installt, help, -release-obfuscation-check, -release-prompt-for-password, -release-sign, android_rules.release, installr, release, android_rules.-pre-clean, android_rules.-post-compile, installi, android_rules.-code-gen, android_rules.-release-prompt-for-password, android_rules.-package-resources, android_rules.-set-mode-check, android_rules.-test-project-check, test, android_rules.help, android_rules.install, clean, android_rules.-do-debug, android_rules.-check-env, android_rules.-package, android_rules.-set-instrumented-mode, android_rules.-post-package, android_rules.test, android_rules.debug, uninstall, android_rules.-build-setup, nodeps, android_rules.-crunch, , android_rules.-set-release-mode]
-set-mode-check:
-set-debug-files:
-check-env: [checkenv] Android SDK Tools Revision 22.3.0 [checkenv] Installed at C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk
-setup: [echo] Project Name: untitled1 [gettype] Project Type: Application
-set-debug-mode: Property "emma.enabled" has not been set
-debug-obfuscation-check:
-pre-build:
-build-setup: [getbuildtools] Using latest Build Tools: 19.0.0 [property] Loading C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\build.prop Override ignored for property "build.last.target" Override ignored for property "build.last.is.instrumented" Override ignored for property "build.last.is.packaging.debug" Override ignored for property "build.last.is.signing.debug" [echo] Resolving Build Target for untitled1... [gettarget] Project Target: Android 4.4 [gettarget] API level: 19 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\res because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\libs because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\res because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\rsObj because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\rsLibs because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\gen because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\classes because it already exists. [mkdir] Skipping C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1\bin\dexedLibs because it already exists. [echo] ---------- [echo] Resolving Dependencies for untitled1...
BUILD FAILED C:\MATLAB\SupportPackages\R2014a\andriod\adt-bundle-windows-x86_64-20131030\sdk\tools\ant\build.xml:577: ../OpenCV resolve to a path with no project.properties file for project C:\Users\Tang\Documents\MATLAB\untitled1_rtt\untitled1 at com.android.ant.DependencyHelper.getDirectDependencies(DependencyHelper.java:250) at com.android.ant.DependencyHelper.init(DependencyHelper.java:182) at com.android.ant.DependencyHelper.<init>(DependencyHelper.java:177) at com.android.ant.GetLibraryPathTask.execute(GetLibraryPathTask.java:149) at com.android.ant.ComputeDependencyTask.execute(ComputeDependencyTask.java:226) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.Main.runBuild(Main.java:851) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Accedi per commentare.

Risposte (1)

saras
saras il 5 Ago 2015
Modificato: saras il 5 Ago 2015
Can you briefly describe your workflow?
Please note that "Hello world, model-name" will be the default text displayed in the apps generated with the support package.

Categorie

Scopri di più su Android Devices in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by