I got same question, did gradle plugin resolve this problem???

Alexey Toropov於 2014年2月11日星期二UTC+8下午4時32分45秒寫道:
>
> Is there any chance to "tell" gradle to include vector, string, iostream 
> and other default classes into the built shared library?
>
> On Tuesday, February 11, 2014 12:32:57 AM UTC+3, Xavier Ducrohet wrote:
>>
>> Not really. Ultimately we would like everything to be configured through 
>> build.gradle.
>>
>> We do realize there's a lot of work to do to get there.
>>
>>
>> On Mon, Feb 10, 2014 at 12:25 PM, Philippe Simons 
>> <[email protected]>wrote:
>>
>>> Is supporting Android.mk files a planned features?
>>>
>>>
>>> On Mon, Feb 10, 2014 at 8:20 PM, Xavier Ducrohet <[email protected]>wrote:
>>>
>>>> None of the existing .mk are using by the current integration. I've 
>>>> been pretty slammed in the last month but I intend to write docs shortly.
>>>>
>>>>
>>>> On Mon, Feb 10, 2014 at 7:35 AM, Alexey Toropov <[email protected]>wrote:
>>>>
>>>>> I have next structure:
>>>>> - src
>>>>>
>>>>> - main
>>>>>
>>>>> - jni
>>>>>
>>>>> - Android.mk
>>>>>
>>>>> - Application.mk
>>>>>
>>>>> - <source_files> 
>>>>>
>>>>> - java
>>>>>
>>>>> - res
>>>>>
>>>>>
>>>>> One of my source files has lines:
>>>>> #include <vector>
>>>>> #include <string>
>>>>>
>>>>> vector and string are classes of Default C++ Library, but Android 
>>>>> Studio shows me an error:
>>>>>
>>>>> *d:/<..project_path..>/src/main/jni/<...>.hh:6:18: fatal error: 
>>>>> vector: No such file or directory*
>>>>> *compilation terminated.*
>>>>> *make.exe: *** <...>*
>>>>>
>>>>>  *FAILURE: Build failed with an exception.*
>>>>>
>>>>> ** What went wrong:*
>>>>> *Execution failed for task ':<..project_name..>:compileReleaseNdk'.*
>>>>> *> com.android.ide.common.internal.LoggedErrorException: Failed to run 
>>>>> command:*
>>>>> * D:\<..ndk_path..>\ndk-build.cmd NDK_PROJECT_PATH=null 
>>>>> APP_BUILD_SCRIPT=D:\<..project_path..>\build\ndk\release\Android.mk 
>>>>> APP_PLATFORM=android-19 
>>>>> NDK_OUT=D:\<..project_path..>\build\ndk\release\obj 
>>>>> NDK_LIBS_OUT=D:\<..project_path..>\build\ndk\release\lib APP_ABI=all*
>>>>> *Error Code:*
>>>>> * 2*
>>>>> *Output:*
>>>>> * In file included from 
>>>>> D:<..project_path..>\src\main\jni\<...>.cpp:1:0:*
>>>>> * d:/<..project_path..>/src/main/jni/<...>.hh:6:18: fatal error: 
>>>>> vector: No such file or directory*
>>>>> * compilation terminated.*
>>>>> * make.exe: *** 
>>>>> [D:\<..project_path..>\build\ndk\release\obj/local/armeabi/objs/<..project_name..>/D_\<..project_path..>\src\main\jni\<...>.o]
>>>>>  
>>>>> Error 1*
>>>>>
>>>>>
>>>>> ** Try:*
>>>>> *Run with --stacktrace option to get the stack trace. Run with --info 
>>>>> or --debug option to get more log output.*
>>>>>
>>>>> My Application.mk file has line "APP_STL := stlport_static".
>>>>>
>>>>> Using Windows command line the lib builds correctly and without such 
>>>>> errors.
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "adt-dev" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> Xavier Ducrohet
>>>> Android SDK Tech Lead
>>>> Google Inc.
>>>> http://developer.android.com | http://tools.android.com
>>>>
>>>> Please do not send me questions directly. Thanks! 
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "adt-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "adt-dev" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> Xavier Ducrohet
>> Android SDK Tech Lead
>> Google Inc.
>> http://developer.android.com | http://tools.android.com
>>
>> Please do not send me questions directly. Thanks! 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to